How to display Visio file in SharePoint web part by Elton

Just talked with my colleague Marijn Somers about viewing documents directly on SharePoint sites, when this came up. I remember having done this before for displaying infrastructure Visio drawings on the homesite of the Infrastructure Team SharePoint site using the trick below. I thought to put it on my blog as well (don’t know why I didn’t before, but….) 


So here it is. I found it in an article on Elton’s Ark MSDN blog


 


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.

2 thoughts on “How to display Visio file in SharePoint web part by Elton

  1. My visio file doesn’t appear Internet explorer 8.0, but it works with internet explorer 6.0, why and what should I do?

Leave a Reply

Your email address will not be published. Required fields are marked *