The Mysteries Behind Aligning Visio Images
February 27, 2011 2 Comments
A colleague of mine recently reminded me of an issue I ran into when building out a dashboard with Visio. He was having issues aligning Visio charts with other web parts; It appeared that when a Visio web part was used on a page, it would have an arbitrary amount of canvas space around the image. He had seemingly tried everything, except for starting over.
I had this exact same issue, and it almost drove me mad figuring out what I could do to fix it. I attempted to change several properties on the web part itself, such as: Overriding the Web Drawing’s default initial view; disabling zooming; and, disabling panning. Then just for the heck of it, I open up Visio itself and think I might have some luck there.
First things first, I save the file. To my surprise the canvas area changes once again, but this time it at least looks a little bit familiar. I switch back to Visio and I notice that layout in the web part matches exactly the layout in Visio. It seems that the vdw holds onto some view state information. This makes no sense to me, but I test out my hypothesis by scrolling up in Visio and give myself about 3 inches of canvas space.
I hit save and refresh my SharePoint page, I’m astounded to see that the changes have been carried through.
I go back to Visio and align the canvas with the top of the window and save.
Lo and behold, my web part page is all fixed. The lesson learned from this small exercise is that you should never give up and don’t be ashamed to try oddball solutions.
Subscribe to be emailed about new SharePoint posts.