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, from the toolbar menu, select Report, then Settings.
- Or you can right-click the Settings node in the Report Explorer and select Show.
- In the Report Settings dialog, click 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.
To write the code in Visual Basic.NET
| Visual Basic.NET code. Paste INSIDE the Format event. | Copy Code |
|---|---|
Me.lblMyLabel.Left = ActiveReport.CmToInch(2) Me.lblMyLabel.Top = ActiveReport.CmToInch(2) | |
| C# code. Paste INSIDE the Format event. | Copy Code |
|---|---|
this.lblMyLabel.Left = ActiveReport.CmToInch(2); this.lblMyLabel.Top = ActiveReport.CmToInch(2); | |
Concepts
Report and Page Settings
Related Sections
Getting Started