Accessing the Page Properties of the shape sheet

J

Jacques

I want to access programmaticaly (C#) the Page Properites cells directly to
resize the page, etc.
 
J

Jacques

ok I found it.

// Get the page that is shown in the window.
viewPage = viewWindow.PageAsObj;
// Get the width and height of the page by reading them
// from the page sheet.
pageWidth =
viewPage.PageSheet.get_CellsSRC((short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionObject
(short)Microsoft.Office.Interop.Visio.VisRowIndices.visRowPage,(short)Microsoft.Office.Interop.Visio.VisCellIndices.visPageWidth).ResultIU;
 

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