visio_logoA great new feature of SharePoint 2010, is the online rendering of Visio forms. It allows you to visualize process status information and it also offers more advanced options for KPI visualization.

However, the default display behavior of the Visio Web Access part is a bit nasty, especially when you try to display information inline of the page. The content position of the Visio document is positioned completely wrong and the user has to correct the zoom or even has to drag the information. As you can see in the example below, my Visio information is shown incorrectly.

visio_display_problem

This problem can be fixed by modifying the XML configuration of the web part. Before you can modify the XML configuration, make sure you enable the checkbox of the web part option “Override the Web Drawing’s default initial view using the web part’s current page, pan and zoom”. Never turn off this option again, because it will completely reset the view settings in the xml.

visio_display_problem_webpart_settings

After you have saved the web part with the override setting, export it to your desktop and open it in an editor. Notepad will do fine. Search inside the XML for a property called “ViewSettings”.

<property name=”HelpUrl” type=”string” />
<property name=”ExportMode” type=”exportmode”>All</property>

<property name=”ViewSettings” type=”string”>{“pageIndex”:0,”viewBounds”:{“x”:120,”y”:0,”width”:489, “height”:175},”zoomValue”:90}</property>

<property name=”OverrideViewSettings” type=”bool”>True</property>
<property name=”AllowClose” type=”bool”>True</property>

This property allows you to alter the default display option of the web part, but only when the property “OverrideViewSettings” is set to true. Try to play around with the X and Y setting and perhaps the zoomValue. Save the web part file and import it again to your page. You might have to repeat the process a few times to get it right, but after a few tries the web part will show your information correctly. This way Visio is a great option to show KPI information.

visio_display_problem_corrected