Report Units of Measurement
- 3 minutes to read
This topic describes the systems of measurement (Imperial, Metric or Screen) that can be assigned to a report to present values in a uniform manner (e.g., element locations, dimensions and margins).
Supported Systems of Measurement
Most metrics of report elements (i.e., element locations, dimensions and margins) can be expressed in units that correspond to one of the following systems of measurement.
Imperial system (in hundredths of an inch)
This is the default system that is assigned to each new report, as well as to controls that have been created in code, but have not yet been added to a report (in this case, the XRControl.RootReport property of these controls returns null in C# or Nothing in Visual Basic).
- Metric system (in tenths of a millimeter)
- Screen coordinates (in pixels)
To assign a system of measurements to a report, use its XtraReport.ReportUnit property.
Alternatively, you can use the Report Designer Options Dialog:
A change in measurement system converts the corresponding property values and updates the layout of all report elements in the Report Designer. Notably, the measurement system determines the minimum increment with which an element’s location and size can be changed, which is specified by the XtraReport.SnapGridSize property.
When you specify a control’s dimensions in code, make sure that these values agree with the measurement units that are currently assigned to the report.
Affected Properties
To maintain a high standard of printing, the border width of an element is always measured in pixels, which only applies to the XRControl.BorderWidth and XRZipCode.SegmentWidth property values. When publishing a report, these values are converted to its unit of measurement based on the control’s Dpi
property value.
The values of the following properties are expressed in the measurement units assigned to the XtraReport.ReportUnit property.
Properties | Description |
---|---|
Determines the scale of the snap grid, which allows you to easily align elements in a Report Designer. | |
Specifies both the dimensions and location of an element. | |
Specify an element’s dimensions. | |
Specify an element’s location. | |
Specify the dimensions of report pages. | |
Specifies the page margins of a report. | |
Specify the width of report columns and the spacing between them. | |
Specify the Shape control’s line width. | |
Specifies the width of the narrowest module (a bar or white space) in a bar code. | |
Specify the start and end coordinates of a cross-band control. |