Hi Ya,
The party-line used to be that "the viewer is for non-Visio pcs...yada yada
yada", but I thought that might have changed for Visio 2007. Anyway, I
couldn't find the good answer to your "coexist" problem, but I did find some
html from an old sample web page I made (see html at end of post...)
It was using the Visio 2003 Viewer, but I imagine most of this is the same
with the 2007 version(?)
You need to set the value of the SRC parameter, ie, in this line:
<param name="SRC" value="">
You could just set it as "Test.vsd" and rename your files when you drop them
in a certain directory.
Alternatively, you could create a VB.NET app with the Viewer embedded in a
form and add an Open... button or trap drag-and-drop so you can drag Visio
files from Explorer...
<!-- Visio control ------------------------------>
<td>
<!--
To install the Visio Viewer automatically when a user views your
Web page, you can set the value of the codebase attribute to
a download location as shown in this example:
<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857"
codebase="
http://download.microsoft.com/download/visiostandard2002/
vview10/1/w982kmexp/en-us/vviewer.exe" id="viewer1" width="100%"
height="100">
-->
<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857"
id="VisX" width="100%" height="286" VIEWASTEXT>
<!-- BackColor can match that of the html document -->
<param name="BackColor" value="FFCC99">
<param name="AlertsEnabled" value="-1">
<param name="ContextMenuEnabled" value="0">
<param name="GridVisible" value="0">
<param name="HighQualityRender" value="-1">
<param name="PageColor" value="16777215">
<param name="PageVisible" value="-1">
<param name="PropertyDialogEnabled" value="0">
<param name="ScrollbarsVisible" value="0">
<param name="ToolbarVisible" value="-1">
<!-- default drawing path goes on the next line: -->
<param name="SRC" value="">
<param name="CurrentPageIndex" value="1">
<param name="Zoom" value="0.396875">
<param name="SizeGripVisible" value="0">
<param name="PageTabsVisible" value="-1">
<param name="ToolbarButtons"
value="About,Sep,ZoomIn,ZoomOut,ZoomWidth,ZoomPage,Zoom100,Zoom,Sep,OpenInVisio,Sep,Props,Layers,Reviewing,Sep,Help">
<param name="ToolbarCustomizable" value="-1">
</object>
</td>
--
Hope this helps,
Chris Roth
Visio MVP
Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/