Welcome to MSDN Blogs Sign in | Join | Help

How to display Visio file in SharePoint web part

I have an idea recently that I want our project web site could display Office Visio file and Office Project .mpp file.

Visio attract me very much for its powerful diagram elements, it could centralize my thinking in a diagram and it is so easy understanding and abstractive in every phase of project life cycle.

For .mpp file I want to replace normal list web part with gantt diagram. Normally we maintain a task list in SharePoint account for the project schedule, but I'd rather to use project file to plan and monitor the project status, because task list is not straitforward for task dependency and task hierarchy, but gantt diagram is a good choice to me.

I found a method to display visio file in SharePoint web part and I don't know if it is the only solution or not now.

Visio 2003 Viwer active-x control must be installed in client machine even if it has office 2003 installed, before client user browse the sharepoint web page containing visio web part (I don't like this, but in vain). This active-x control is an add-in of IE to display visio diagram. It could be found at http://www.microsoft.com/downloads/details.aspx?FamilyId=3FB3BD5C-FED1-46CF-BD53-DA23635AB2DF&displaylang=en.

In SharePoint you could drag & drop a Content Editor web part onto a web part page, then click "Source Editor" button to imput following:

<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="16777120">
<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="1">
<param name="PropertyDialogEnabled" value="1">
<param name="ScrollbarsVisible" value="1">
<param name="ToolbarVisible" value="1">
<param name="SRC" value="http://wssxxxx/Shared%20Documents/Yukon%20Timeline.vsd">
<param name="CurrentPageIndex" value="0">
<param name="Zoom" value="-1">
</object>

Red color string indicates the visio file's location in SharePoint. Other parameters could be set according to its effect in IE visio viewer.

The result doesn't meet my idea completely, anyway it is a solution for displaying the visio file in SharePoint.

Useful link: http://www.wssdemo.com/Pages/visio.aspx?menu=Articles.

Published Friday, October 21, 2005 11:15 PM by Elton
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: How to display Visio file in SharePoint web part

Friday, April 14, 2006 9:05 PM by Roy
I am very curious how to do the .mpp viewing in a web part, did you figure this out?  I checked your references, but to no avail, did not find anything... thoughts?

# re: How to display Visio file in SharePoint web part

Sunday, April 16, 2006 10:49 PM by Elton
For showing .mpp file in a webpart, I didn't investigate it further more.

I will post here if I get the solution.

Thanks/Elton

# re: How to display Visio file in SharePoint web part

Thursday, April 20, 2006 1:02 PM by Greg
Nice Tip.

2 questions if I may.

1. Any way to have one page setup and pass the name of the new file to load to the viewer depending on what the user clicks?

2. How I do this with Word? PDFs?

Thanks,
Greg

# re: How to display Visio file in SharePoint web part

Monday, April 24, 2006 6:14 AM by Elton
Greg, if my understanding is correct, you want to create two web parts. In the first one all filenames are listed like the Windows Explorer. When user click a filename, the content of the selected file will appeared in the second web part.

I think these two web parts could be created using Consumer/Provider model, and the connection parameter is the selected filename. Here is an excellent article on this topic, "A Developer's Introduction to Web Parts", http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_SP2003_ta/html/sharepoint_northwindwebparts.asp

For the word/pdf question, sorry I don't have any expertise on it. Just guess the Content Editor Web Part may help.

Thanks/Elton

# re: How to display Visio file in SharePoint web part

Wednesday, July 12, 2006 7:59 AM by Dries
Hi thanks for you advice, but the "viso webpart" looks liek a picture, rather than an active element.

Is it also possible to use the visio activily - hyperlinks in the flow which send you to a specific part of the documentation?

If yes, is this hardcoded file location or a relative location to where you can send the hyperlink?

Maybe you can help me, thanks in advance!
Dries

# re: How to display Visio file in SharePoint web part

Wednesday, July 12, 2006 8:51 PM by Elton
Yes, I have the same feeling with you, that the visio web part is not flexible enough. I have no experience to make it active, so can't help you more on this.

Thanks/Elton

# re: How to display Visio file in SharePoint web part

Thursday, November 22, 2007 9:42 PM by samhuang

Thanks, and besides read only, can we edit Visio files in Sharepoint?

# re: How to display Visio file in SharePoint web part

Monday, March 31, 2008 2:08 PM by Kishore

Elton,

Thank you for sharing. This solution works for me perfectly.

# How to display Visio file in SharePoint web part by Elton

Monday, October 13, 2008 9:36 AM by Dirk Van den Berghe SharePoint Admin Blog

Just talked with my colleague Marijn Somers about viewing documents directly on SharePoint sites, when

# re: How to display Visio file in SharePoint web part

Monday, November 10, 2008 11:03 AM by bug in the example

Change the example to be height 100% instead of 100

# Integrating Visio 2007 and SharePoint

Monday, December 22, 2008 8:00 AM by Marc L's SharePoint and .NET Blog

Integrating Visio 2007 and SharePoint

# Int?gration fichiers Office | hilpers

Thursday, January 22, 2009 9:48 AM by Int?gration fichiers Office | hilpers

# re: How to display Visio file in SharePoint web part

Friday, March 13, 2009 3:33 PM by John

Actually, I've found the width and height need to be 800x600 or some ratio slightly higher or lower (depending the page/zone layout)for it to display largely enough in the Web Part to be useful.  In fact I tried this ratio

width="1024" height="768" with

<param name="Zoom" value="-3"> and it looks pretty good to me.

# re: How to display Visio file in SharePoint web part

Wednesday, March 18, 2009 1:47 PM by William

Save the visio file as a .vdx (xml) file. Use the "Page Viewer Web Part" in Sharepoint to display the .vdx file. Using IE 5 or later will automatically display the file as a webpart with the visio viewer tool bar. Unfortunately any hyperlinks in the .vdx file open in the web part. Also there is no data refresh to connected data source which is very irritating.

Does anyone know how to change the visio viewer web part to open hyperlinks in a new tab?

# SharePoint :: Comment Visualiser les PPT ? &laquo; Les miscellan??es Num??riques

# re: How to display Visio file in SharePoint web part

Friday, May 08, 2009 7:09 AM by jackdougher

An alternative solution that incorporates a Visio diagram into a SharePoint 2007 non-publishing page (team site page) and renders the diagram fully functional can be found at this page: http://docucentric.net/index.php?p=1_8

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker