Report Units of Measurement
- 4 minutes to read
This article describes the different measurement systems—Imperial, Metric, and Screen coordinates—that can be used in reporting to maintain uniformity in element locations, dimensions, and margins. This help topic includes details on how to assign these measurement units within reports and the properties affected by the chosen system.
Supported Systems of Measurement
Most metrics of report elements can be expressed in units that correspond to one of the following systems of measurement:
Imperial system: hundredths of an inch, inches.
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: tenths of a millimeter, millimeters.
- Screen coordinates: pixels.
To assign a system of measurements to a report, use its XtraReport.ReportUnit property.
Alternatively, you can use the Report Designer Options Dialog:
Changing the measurement system converts the corresponding property values and updates the layout of all report elements in the Report Designer. The measurement system determines the minimum increment with which an element’s location and size can be changed, 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.
Display Element Size during Resize Operations (Dimension Notations)
You can use the UserDesignerOptions.ShowDimensionNotations setting to control whether to display exact element size while resizing. The notation are based on a selected report unit:
System of Measurement | Displayed Unit | Image |
---|---|---|
Imperial system | inches, hundredths of an inch |
![]() |
Metric system | millimeters, tenths of a millimeter |
![]() |
Screen coordinates | pixels | ![]() |
Alternatively, use the Dimension Notation option in the View tab to control dimension notations visibility:
For Web Report Designer, use the DimensionNotationsEnabled setting.
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.
- XtraReport.SnapGridSize
- Specifies the dimensions of the report designer snap grid.
- XRControl.BoundsF
- Specifies the location and size of a report element, according to the system of measurement selected for the report.
- XRControl.SizeF
- Gets or sets the size of the control.
- XRControl.HeightF
- Specifies the control’s height (measured in report units).
- XRControl.WidthF
- Specifies the control’s width (measured in report units).
- XRControl.LocationF
- Specifies the floating-point representation of the coordinates of the control’s upper-left corner.
- XRControl.BottomF
- Gets the Y-coordinate of the control’s bottom edge (measured in report units).
- XRControl.LeftF
- Specifies the X-coordinate of the control’s left edge (measured in report units).
- XRControl.RightF
- Gets the X-coordinate of the control’s right edge (measured in report units).
- XRControl.TopF
- Gets or sets the Y-coordinate of the control’s top edge (measured in report units).
- XtraReport.PageHeightF
- Specifies the height of report pages (measured in report units). Has effect only if the XtraReport.PaperKind property is set to
Custom
. - XtraReport.PageWidthF
- Specifies the width of report pages (measured in report units). Applies only if the XtraReport.PaperKind property is set to
Custom
. - XtraReport.Margins
- Gets or sets the report’s page margins.
- MultiColumn.ColumnWidth
- Gets or sets the widths of the columns when printing muli-column reports.
- MultiColumn.ColumnSpacing
- Gets or sets the amount of space between the columns when multi-column reports are printed.
- XRShape.LineWidth
- Gets or sets the width (in report units) of the line which is used to draw the shape image.
- XRBarCode.Module
- Gets or sets the width of the narrowest bar or space in the current XRBarCode instance (measured in report units).
- XRCrossBandControl.StartPointF
- Gets or sets the starting point where the cross-band control starts drawing.
- XRCrossBandControl.EndPointF
- Gets or sets the ending point where the control ends drawing.