Size to fit drawing

Started by alanrenouf, December 03, 2008, 04:33:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alanrenouf

Is there a way to program the paper to use 'Size to fit drawing' as you would do within visio ?

Thanks

Paul Herber

You need to get the reference to the page then in the PageProperties section set the DrawingSizeType cell to visTight.
I don't do enough VBA etc to get the syntax exact but .

  page.cellSRC[visSectionObject, visRowPage, visPageDrawSizeType] := visTight;

is what it looks like in Delphi (no, I haven't checked it!).
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/