ActiveReports 6 Online Help
Change Ruler Measurements
See Also Send comments on this topic.
ActiveReports 6 > ActiveReports User Guide > How To > Change Ruler Measurements

Glossary Item Box

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

  1. In an existing ActiveReports project, from the toolbar menu, select Report, then Settings.
  2. Or you can right-click the Settings node in the Report Explorer and select Show.
     
  3. In the Report Settings dialog, click Global Settings.
  4. 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.

ShowTo 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)

ShowTo write the code in C#

C# code. Paste INSIDE the Format event. Copy Code
this.lblMyLabel.Left = ActiveReport.CmToInch(2);
this.lblMyLabel.Top = ActiveReport.CmToInch(2);

See Also

Concepts
Report and Page Settings

Related Sections
Getting Started