Quantcast
Channel: Visio General Questions and Answers for IT Professionals forum
Viewing all articles
Browse latest Browse all 2333

Page.AutoSize property doesn't change

$
0
0

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:

http://visguy.com/vgforum/index.php?topic=5004.0

http://visguy.com/vgforum/index.php?topic=5010.0


Viewing all articles
Browse latest Browse all 2333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>