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….)
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:
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″>
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.