[repost] Page Orientation?

G

Gerard Braad

[repost due to connection problem]

I want to change the page orientation to Landscape... but for some
reason i cant get it to work?!?!?


visio.Shapes visioShapes = visioPage.Shapes;
visio.Shape visioShape = visioShapes["ThePage"];

visio.Cell visioCell =
visioShape.get_CellsSRC((short)visio.VisSectionIndices.visSectionObject,
(short)visio.VisRowIndices.visRowDoc,
(short)visio.VisCellIndices.visPrintPropertiesPageOrientation);

// visPPOLandscape
//visioCell.set_ResultFromInt("PrintPageOrientation", 2);
//visioCell.FormulaU = "2";

// 32 = visNumber, 252 = visNoCast
//visioCell.set_ResultFromInt(32, 2);

//Console.WriteLine(visioCell.get_Result(32));
//visioCell.set_ResultFromInt(252, 2);
visioCell.set_ResultFromIntForce(252, 2);
Console.WriteLine(visioCell.Shape.Name + " " + visioCell.Name + " " +
visioCell.get_Result(252));


this results in: ThePage Sect1.02 1

does anyone know how to change it??? the comments also suggest the other
things i tried. someow i do completely wrong :-S.

thanks in advance
 

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

Similar Threads

Page Orientation? 2

Top