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 ?
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 ?