Visio 2003 Page Orientation

A

Amr Sabet

Does someone know how to set the page orientation in Visio 2003 programatically in C#? I tried to record a macro in Vision while changing the page orientation but I get the following code:

Application.ActivePage.PageSheet.CellsSRC(visSectionObject, visRowPage, visPageWidth).FormulaU = "11 in"
Application.ActivePage.PageSheet.CellsSRC(visSectionObject, visRowPage, visPageHeight).FormulaU = "8.5 in"
Application.ActivePage.PageSheet.CellsSRC(visSectionObject, visRowPage, visPageDrawSizeType).FormulaU = "3"

which does not help since the method CellsSRC does not show up in the object model in C#.

Any ideas?

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
P

Paul Herber

Does someone know how to set the page orientation in Visio 2003 programatically in C#? I tried to record a macro in Vision while changing the page orientation but I get the following code:

Application.ActivePage.PageSheet.CellsSRC(visSectionObject, visRowPage, visPageWidth).FormulaU = "11 in"
Application.ActivePage.PageSheet.CellsSRC(visSectionObject, visRowPage, visPageHeight).FormulaU = "8.5 in"
Application.ActivePage.PageSheet.CellsSRC(visSectionObject, visRowPage, visPageDrawSizeType).FormulaU = "3"

which does not help since the method CellsSRC does not show up in the object model in C#.

the method has been renamed to get_CellsSRC
 

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