Hi Tom,
You can pass in a parameter if the webpage html is hosted on a web server
which will allow you to specify the zoom level.
Example for parameter:
http://foo/drawing1.htm?page=Page-1&zoom=200 Note:
Zoom is only available if your Save as Web output format is the default
VML format.
If you are not hosting the webpage html on a webserver, or if you don't
want to use a parameter on the URL to change the zoom level, you can edit
the code in the main htm output file - for example - drawing1.htm.
The PageLoadedDoCallback function needs to be modified as shown below (the
lines beginning with '*' are added):
function PageLoadedDoCallback()
{
if (g_WidgetsLoaded)
{
for( var i=0; i < g_callBackFunctionArray.length; i++ )
{
g_callBackFunctionArray
();
}
g_callBackFunctionArray = new Array();
* if (viewMgr && viewMgr.Zoom)
* {
* viewMgr.Zoom(200);
* viewMgr.setView (0, 0);
* }
}
else
{
window.setTimeout("PageLoadedDoCallback()", 500);
}
}
--
Dick Hamilton
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no
rights.
MrTom_AK said:
How do I save a visio diagram as a web page - then when viewing it have
the
default zoom set to 200% (instead of scalable)?
Thanks
-tom