I used the "Save as Web Page" feature in Visio Professional 2007 to publish my Visio document to a Web site. The Visio document included several sub-pages and I can navigate to these pages on the Web site by using the drop-down in the "Go to Page" section. But what I want to do is reference one of the posted sub-pages directly from another site. I can't figure out what the URL is for a sub-page. How can I link to a sub-page posted on the Web site?
One important thing to know first: when you save as web page, Visio creates a file I'll call the "index file" -- it's the pointer to the rest of the web page pieces. It has the same name as your Visio drawing with a .htm file extension. Visio also creates a subfolder that contains the rest of the web pieces -- html files, images, javascript files and more.
If your drawing is fred.vsd, then the index file is fred.htm and the subfolder is fred_files. By default, both are saved in the same directory as your Visio drawing.
To do what you want to do, open the index file in Notepad or a web page editor and look for this line:
var g_CurPageIndex = 0;
replace it with the code shown below and save the file.
Now you can open any page by using a URL of the form
http://<index page URL>?<page number>
For example, to load page 3 of fred.htm, use this
http://fred.htm?3
Note that you'll need a full URL to point to your index page, not just the file name. On a web server it might look like
http://www.mysite.com/fred.htm?3
Open in new window