Why is there no effect of this command in C#?
AxMicrosoft.Office.Interop.VisOcx.AxDrawingControl canvas; //... Visio.Page p = (Visio.Page)canvas.Window.Application.ActiveWindow.Page; p.AutoSize = true; //<---The value doesn't change!!!
Can anyone tell what am I missing?
I am using:
-Visio 2010
-Visual Studio 2010
-.NET 4.0
Visio sample is very simple one. To create one, create blank document. Turn off "Auto Size" feature. Place a drawing component inside the page boundary, and place another outside the page, say, to the left of the first. If you run C# code on this VSD, it doesn't work.
I asked question on Visio guy forum, but did not get answer.
Links: