Visio Viewer

T

tpiers

I have Visio 2007 and I installed Visio Viewer to see how a diagram would
look for others that do not have Visio. However, when I try to open a diagram
with Internet Explorer, it opens Visio - not the viewer. Is there a way to
force IE to use the viewer?
 
D

David Parker

The accidently sent previous reply has links for the Visio 2007 Viewer and
SP1 ...
I was going to point you at the sample web page for the Visio Viewer control
that is installed with the install, but I couldn't find it in theses
versions, so here as an example :.

<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857"
codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe"
id="Viewer1" width="821" height="639">
<!--<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857"
codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe"
id="viewer1" width="100%" height="100%">-->
<param name="BackColor" value="16777215">
<param name="AlertsEnabled" value="-1">
<param name="ContextMenuEnabled" value="-1">
<param name="GridVisible" value="0">
<param name="HighQualityRender" value="-1">
<param name="PageColor" value="16777215">
<param name="PageVisible" value="0">
<param name="PropertyDialogEnabled" value="-1">
<param name="ScrollbarsVisible" value="-1">
<param name="SizeGripVisible" value="0">
<param name="ToolbarVisible" value="-1">
<param name="SRC" value="./visNetGoldDemo.vsd">
<param name="CurrentPageIndex" value="1">
<param name="Zoom" value="0.34925">
<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>
 
T

tpiers

David,

Thanks for the reply. I hate to admit it, but I do not know what to do with
the code sample you provided (not sure where to put/run it). I also don't
know what it will do. If you could give me a little more direction, that
would be great.

Thanks again, Tom
 
A

Amedee Van Gasse

I have Visio 2007 and I installed Visio Viewer to see how a diagram would
look for others that do not have Visio. However, when I try to open a diagram
with Internet Explorer, it opens Visio - not the viewer. Is there a way to
force IE to use the viewer?

I found this registry key somewhere on the Microsoft support site, use
at your own risk:
(save to a .reg file & doubleclick)


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.vsd]
"Content Type"="application/vnd.ms-visio.viewer"
@="VisioViewer.Viewer"

[HKEY_CLASSES_ROOT\.vst]
"Content Type"="application/vnd.ms-visio.viewer"
@="VisioViewer.Viewer"

[HKEY_CLASSES_ROOT\.vdx]
"Content Type"="application/vnd.ms-visio.viewer"
@="VisioViewer.Viewer"

[HKEY_CLASSES_ROOT\.vss]
"Content Type"="application/vnd.ms-visio.viewer"
@="VisioViewer.Viewer"

[HKEY_CLASSES_ROOT\.vst]
"Content Type"="application/vnd.ms-visio.viewer"
@="VisioViewer.Viewer"

[HKEY_CLASSES_ROOT\.vsx]
"Content Type"="application/vnd.ms-visio.viewer"
@="VisioViewer.Viewer"

[HKEY_CLASSES_ROOT\.vtx]
"Content Type"="application/vnd.ms-visio.viewer"
@="VisioViewer.Viewer"
 
D

David Parker

Tom,

It is a code snippet for an html page. Below is a complete(ish) code for
MyDrawing.htm in the same folder as a drawing called MyDrawing.vsd.
Simply use notepad to create MyDrawing.htm and replace MyDrawing.vsd with
your drawing name.

========Cut Here====================
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
<p>
<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857"
codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe"
id="Viewer1" width="821" height="639">
<!--<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857"
codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe"
id="viewer1" width="100%" height="100%">-->
<param name="BackColor" value="16777215">
<param name="AlertsEnabled" value="-1">
<param name="ContextMenuEnabled" value="-1">
<param name="GridVisible" value="0">
<param name="HighQualityRender" value="-1">
<param name="PageColor" value="16777215">
<param name="PageVisible" value="0">
<param name="PropertyDialogEnabled" value="-1">
<param name="ScrollbarsVisible" value="-1">
<param name="SizeGripVisible" value="0">
<param name="ToolbarVisible" value="-1">
<param name="SRC" value="./MyDrawing.vsd">
<param name="CurrentPageIndex" value="1">
<param name="Zoom" value="0.34925">
<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>
</p>
<p>
Hold down CTRL+SHIFT and drag a rectangle to zoom in to an area.</p>
<p>
Try opening the Properties and Settings dialog in the viewer, and clicking
on a
shape with the CTRL key held down.</p>
<p>
Try toggling the visibility of layers and reviewers mark-up</p>
<p>
<!--
If you want the Visio Viewer to autoinstall when a user navigates to your
web page,
you will want to substitute the following line for the equivalent line
below:
<OBJECT classid="CLSID:279D6C9A-652E-4833-BEFC-312CA8887857"
codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe" id="viewer1" width="100%" height="100%">--></body></html>========Cut Here===================="tpiers" <[email protected]> wrote in messagenews:D[email protected]...> David,>> Thanks for the reply. I hate to admit it, but I do not know what to dowith> the code sample you provided (not sure where to put/run it). I also don't> know what it will do. If you could give me a little more direction, that> would be great.>> Thanks again, Tom>>> "David Parker" wrote:>>> The accidently sent previous reply has links for the Visio 2007 Viewerand>> SP1 ...>> I was going to point you at the sample web page for the Visio Viewercontrol>> that is installed with the install, but I couldn't find it in theses>> versions, so here as an example :.>>>> <object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857">>codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe">> id="Viewer1" width="821" height="639">>> <!--<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857">>codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe">> id="viewer1" width="100%" height="100%">-->>> <param name="BackColor" value="16777215">>> <param name="AlertsEnabled" value="-1">>> <param name="ContextMenuEnabled" value="-1">>> <param name="GridVisible" value="0">>> <param name="HighQualityRender" value="-1">>> <param name="PageColor" value="16777215">>> <param name="PageVisible" value="0">>> <param name="PropertyDialogEnabled" value="-1">>> <param name="ScrollbarsVisible" value="-1">>> <param name="SizeGripVisible" value="0">>> <param name="ToolbarVisible" value="-1">>> <param name="SRC" value="./visNetGoldDemo.vsd">>> <param name="CurrentPageIndex" value="1">>> <param name="Zoom" value="0.34925">>> <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>>>>>>>>> "David Parker" <[email protected]> wrote in message>> news:[email protected]...>> >>> >http://www.microsoft.com/downloads/...42-B174-4198-AE31-6884E9EDD524&displaylang=en>> >>> >http://www.microsoft.com/downloads/...7E-D940-45EC-8D56-EC2FCDF346A5&displaylang=en>> > "tpiers" <[email protected]> wrote in message>> > news:[email protected]...>> >>I have Visio 2007 and I installed Visio Viewer to see how a diagramwould>> >> look for others that do not have Visio. However, when I try to open a>> >> diagram>> >> with Internet Explorer, it opens Visio - not the viewer. Is there away>> >> to>> >> force IE to use the viewer?>> >>> > -->> > David Parker>> > Microsoft MVP (Visio)>> > http://bvisual.spaces.live.com>> > http://www.visualizinginformation.com>>>> -->> David Parker>> Microsoft MVP (Visio)>> http://bvisual.spaces.live.com>> http://www.visualizinginformation.com>>>>--David ParkerMicrosoft MVP (Visio)http://bvisual.spaces.live.comhttp://www.visualizinginformation.com
 
T

tpiers

David,

The code worked great! But, you threw me with the interesting article. I'm
not making the connection.

Thanks Again

Tom
 
I

Irene

Hi,
I have followed your code and it's working fine. But there is one
particular .vsd file that I cannot view it in viewer via IE7.
The viewer area is blank. No error message. If I try to open the file from
Experor, the file is open fine in Visio 2007.
Do you have any idea why this is working for most .vsd but not this
particular one?

Thank

David Parker said:
Tom,

It is a code snippet for an html page. Below is a complete(ish) code for
MyDrawing.htm in the same folder as a drawing called MyDrawing.vsd.
Simply use notepad to create MyDrawing.htm and replace MyDrawing.vsd with
your drawing name.

========Cut Here====================
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
<p>
<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857"
codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe"
id="Viewer1" width="821" height="639">
<!--<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857"
codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe"
id="viewer1" width="100%" height="100%">-->
<param name="BackColor" value="16777215">
<param name="AlertsEnabled" value="-1">
<param name="ContextMenuEnabled" value="-1">
<param name="GridVisible" value="0">
<param name="HighQualityRender" value="-1">
<param name="PageColor" value="16777215">
<param name="PageVisible" value="0">
<param name="PropertyDialogEnabled" value="-1">
<param name="ScrollbarsVisible" value="-1">
<param name="SizeGripVisible" value="0">
<param name="ToolbarVisible" value="-1">
<param name="SRC" value="./MyDrawing.vsd">
<param name="CurrentPageIndex" value="1">
<param name="Zoom" value="0.34925">
<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>
</p>
<p>
Hold down CTRL+SHIFT and drag a rectangle to zoom in to an area.</p>
<p>
Try opening the Properties and Settings dialog in the viewer, and clicking
on a
shape with the CTRL key held down.</p>
<p>
Try toggling the visibility of layers and reviewers mark-up</p>
<p>
<!--
If you want the Visio Viewer to autoinstall when a user navigates to your
web page,
you will want to substitute the following line for the equivalent line
below:
<OBJECT classid="CLSID:279D6C9A-652E-4833-BEFC-312CA8887857"
codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe" id="viewer1" width="100%" height="100%">--></body></html>========Cut Here===================="tpiers" <[email protected]> wrote in messagenews:D[email protected]...> David,>> Thanks for the reply. I hate to admit it, but I do not know what to dowith> the code sample you provided (not sure where to put/run it). I also don't> know what it will do. If you could give me a little more direction, that> would be great.>> Thanks again, Tom>>> "David Parker" wrote:>>> The accidently sent previous reply has links for the Visio 2007 Viewerand>> SP1 ...>> I was going to point you at the sample web page for the Visio Viewercontrol>> that is installed with the install, but I couldn't find it in theses>> versions, so here as an example :.>>>> <object
classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857">>codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe">> id="Viewer1" width="821" height="639">>> <!--<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857">>codebase="http://download.microsoft.com/download/4/5/2/452f8090-413f-408f-83c0-edd66db786ee/vviewer.exe">> id="viewer1" width="100%" height="100%">-->>> <param name="BackColor" value="16777215">>> <param name="AlertsEnabled" value="-1">>> <param name="ContextMenuEnabled" value="-1">>> <param name="GridVisible" value="0">>> <param name="HighQualityRender" value="-1">>> <param name="PageColor" value="16777215">>> <param name="PageVisible" value="0">>> <param name="PropertyDialogEnabled" value="-1">>> <param name="ScrollbarsVisible" value="-1">>> <param name="SizeGripVisible" value="0">>> <param name="ToolbarVisible" value="-1">>> <param name="SRC" value="./visNetGoldDemo.vsd">>> <param
it opens Visio - not the viewer. Is there away>> >> to>> >> force IE to use the viewer?>> >>> > -->> > David Parker>> > Microsoft MVP (Visio)>> > http://bvisual.spaces.live.com>> > http://www.visualizinginformation.com>>>> -->> David Parker>> Microsoft MVP (Visio)>> http://bvisual.spaces.live.com>> http://www.visualizinginformation.com>>>>--David ParkerMicrosoft MVP (Visio)http://bvisual.spaces.live.comhttp://www.visualizinginformation.com
 
D

David J Parker [MVP Visio]

Does it contain any foreign objects, such as a CAD file, or large images?
 

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