ActiveReports 9 > ActiveReports User Guide > How To > Section Report How To > Change Ruler Measurements |
In a section layout, you can change ruler measurements from inches to centimeters and centimeters to inches. Use the following instructions to modify ruler measurements at design- time and run-time.
At design time, you can change the ruler measurements from the Report Settings Dialog.
Call the CmToInch method or InchToCm method at run-time to change measurements. For example, you can use the following code when you are working in centimeters and need to convert a Label's position measurements from centimeters to inches at run-time.
To write the code in Visual Basic.NET
Visual Basic.NET code. Paste inside the Format event. |
Copy Code
|
---|---|
Me.Label1.Left = SectionReport1.CmToInch(2) |
To write the code in C#
C# code. Paste inside the Format event. |
Copy Code
|
---|---|
this.label1.Left = SectionReport1.CmToInch(2); |