Check Box not working when I save as webpage (.htm)

S

stefano.buatti

Hi everyone,

I have inserted a Microsoft Forms Check box on my visio document.
Within Visio, I can check and uncheck this box.

But when I save it as a webpage, it can't be clicked. I know why this
happens, because it saves the controls as images. But is there anyway
around it, or another way I can put a check box on a visio document so
that it can be checked/unchecked when it is saved as a webpage.

Thanks in advance,
Stefano
 
J

John Goldsmith_Visio_MVP

Hello Stefano,

The reason the controls are saved as an image in the web output is that they
are represented as images in the Visio document itself. You can see this is
you save your file in xml format (.vdx).

You need to write your own custom code to either post process the web output
or using some JavaScript as the page loads. Your choice will depend on
whether this is a one off or if you're going to be repeating the process.

Also, I assume you'll want something to happen when the user clicks on the
checkbox....again you'd need to wire this up via JavaScript.

So a general (not very useful) answer is, yes you can add controls, but it
very much depends on what you are trying to achieve. I'll add a link here
to my Save As Web blog section, which might help in understanding the
structure a little more:
http://visualsignals.typepad.co.uk/vislog/save_as_web_page/

A final point is that you might want to consider the Visio Viewer (although
I've not tried any ActiveX controls with this) :

http://office.microsoft.com/en-gb/visio/HP012315221033.aspx

Hope that helps.

Best regards

John


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top