Run Viewer with Visio Installed

Y

yasureubetcha

I want to test appearances before shipping visio files. How can I get view
files with Viewer instead of my installed Visio? Currently using 2003 visio
w/ 2007 viewer.
 
C

Chris Roth [MVP]

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/
 
B

Barb Way

A little more info on this...

The Visio 2003 Viewer and Visio 2007 Viewer will both take ownership of the
Visio file extensions in the absence of a version of Visio. However, when
the Visio application (2003/2007) is installed, it will always take
ownership of the extension, regardless of the presence of a viewer. If you
try to open a Visio drawing in IE when Visio 2003 is installed, the drawing
will open via OLE inside of IE - not in the viewer. If you try the same
task on a Visio 2007 system, the full application will launch with the
drawing loaded.

If Visio is installed first, and then one of the Viewers, there will be a
temporary period during which the Viewer owns the extensions. This will
last until the application is launched - at which time the default Repair
action of the installer will restore the application settings (to own the
extensions). From that point forward, the application should maintain
'ownership'.

Chris' options for creating a custom solution to work around this behavior
are a good place to start. There is also an older article about how to
embed the Viewer 2003 in a web page on MSDN :
http://msdn2.microsoft.com/en-us/library/aa168474(office.11).aspx



Barb Way
Product Support - Visio
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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