In ActiveReports, ruler measurements can be changed from inches to centimeters and centimeters to inches at both design time and run time.
To change ruler measurements at design time
- In an existing ActiveReports project, click on Report> Settings.
- In the Report Settings dialog, click on Global Settings.
- Change Ruler Units from inches to centimeters or centimeters to inches.
To call a measurement conversion at run time
- Call the CmToInch method or InchToCm method whenever needed. For example, if you were working in centimeters and needed to convert a label's position measurements from centimeters to inches at run time, you would use the following code.
'Visual Basic Me.lblMyLabel.Left = ActiveReport.CmToInch(2) Me.lblMyLabel.Top = ActiveReport.CmToInch(2) //C# this.lblMyLabel.Left = ActiveReport.CmToInch(2); this.lblMyLabel.Top = ActiveReport.CmToInch(2);