Saving Visio File as a web page, getting links to open in a new wi

K

KL333

I have been saving a Visio file as a web page. However, I cannot get the
links to automatically open in a new window from the html page.
I tried going to the Shape Sheet in Visio and setting the hyperlinks to open
in a new window, but when you save it as html, it still doesn't work.
Does anyone know how to correct this?
 
S

Scott Helmers

What version of Visio are you using? I recently discovered that the New
Window function appears to be ignored in web pages created by Visio 2002. It
does, however, work correctly in Visio 2003 and 2007 web page output.
 
K

KL333

I am using Visio 2002. Is there any way to manually correct this in the XML
file?
Thank you for your help.
 
S

Scott Helmers

I am using Visio 2002. Is there any way to manually correct this in the XML

Yes, you can manually edit the html so the target pages will open in new
windows.

If your drawing is called
Drawing1 Visio 2002.vsd
look in the web page folder called
Drawing1 Visio 2002_files
for a set of files called
Drawing1 Visio 2002_vml_N.htm
where N is the page number.

For example, open the code for page 1
Drawing1 Visio 2002_vml_1.htm
and find occurrences of
target="_parent"
and replace with
target="_blank"

CAUTION: you don't want to replace *every* occurrence of
target="_parent"
There are a few that should remain as they are to preserve the normal
functions of the saved web pages. The ones you want to replace are those that
follow immediately after a URL in the form
href="XXX"
and a title
title="YYY"
that apply to your linked shapes.
 

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