what is wrong with DefaultPageUnits

T

thanks

AxDrawingControl1.Window.Application.DefaultPageUnits =
(short)VisUnitCodes.visMeters;

I need to change the Default Page Unit as a Meters.

help me to do it.
 
J

JuneTheSecond

Hi,

DefaultPageUnits property is not exist in recent versions.
http://msdn.microsoft.com/en-us/library/bb421563(office.11).aspx
Default units are defined in PageScale cell and DrawingScale cell.
In VBA you can record while you are changing units.
Application.ActivePage.PageSheet.CellsSRC(visSectionObject, visRowPage,
visPageScale).FormulaU = "1 m"
Application.ActivePage.PageSheet.CellsSRC(visSectionObject, visRowPage,
visPageDrawingScale).FormulaU = "1 m"

--
Best Regards.

JuneTheSecond
Now, visual calculation is more visual.
http://www.geocities.jp/visualcalculation/english/index.html
 
W

wmharshana

I'm using Visio 2007 SDK.

actually my requirement is need to change the Ruler showing Unit to Meters.
 
W

wmharshana

Hi,

Actually I don't no why my name shows as a 'thanks', so when I check the
Profile it shows as 'thanks'. so I have changed it to my ID later.
 

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