Resizing Pages and Shapes

P

Paul Johansen

I am using Visio 2002. I have created a drawing and dropped a shape on it
using the object model. How can I resize the current page and also the shape
I dropped on it?

Thanks!

Paul
 
D

Dawn Wright [MSFT]

Paul,

The page and shape sizes are controlled using cells in the ShapeSheet. You
can set the cell values either using the ShapeSheet window (Window > Show
ShapeSheet), or using the object model to access the ShapeSheet cells.

For example, the following would set the current page to 20 inches wide:

Visio.ActivePage.PageSheet.CellsU("PageWidth") = 20

You might check out the online documentation for more information on using
the ShapeSheet:
http://msdn.microsoft.com/library/d...-us/devref/HTML2/DSS_AboutShapeSheet_3263.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top