Drawing Page & Ruller not match

W

wmharshana

My Application Drawing Page and Ruller doesn't match,

is there any reason to mismatch it ?

I'm setting page properties as a
VisioDrawing is a AxMicrosoft.Office.Interop.VisOcx.AxDrawingControl
and _Unit value is " m".


VisioDrawing.Document.Application.ActivePage.PageSheet.get_Cells("PageWidth").Formula = MyWidth.ToString() + _Unit;

VisioDrawing.Document.Application.ActivePage.PageSheet.get_Cells("Pageheight").Formula = MyHeight.ToString() + _Unit;


VisioDrawing.Document.Application.ActivePage.PageSheet.get_Cells("PageTopMargin").Formula = "0" + _Unit;

VisioDrawing.Document.Application.ActivePage.PageSheet.get_Cells("PageBottomMargin").Formula = "0" + _Unit;


VisioDrawing.Document.Application.ActivePage.PageSheet.get_Cells("PageScale").FormulaU = MyPageScale.ToString() + _Unit;

VisioDrawing.Document.Application.ActivePage.PageSheet.get_Cells("DrawingScale").FormulaU = MyDrawingScale.ToString() + _Unit;


is there anything wrong ?
 

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