The requested page is not available for the requested platform. You are viewing the content for Default platform.

Report Units of Measurement

  • 2 min 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.

Fundamentals_MeasureUnits1

Changing the system of measurement results in converting the corresponding property values and updating the layout of all report elements in the Report Designer. Notably, the system of measurement determines the minimum increment with which an element's location and size can be changed, which is specified by the XtraReport.SnapGridSize property.

When specifying a control's dimensions in code, make sure that these values agree with the measurement units that are currently assigned to a 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 XRControl.Dpi property value.

The values of the following properties are expressed in the measurement units assigned to the XtraReport.ReportUnit property.

Properties

Description

XtraReport.SnapGridSize

Determines the scale of the snap grid, which provides effortless alignment of elements in a Report Designer.

XRControl.BoundsF

Specifies both the dimensions and location of an element.

XRControl.SizeF

XRControl.HeightF

XRControl.WidthF

Specify an element's dimensions.

XRControl.LocationF

XRControl.BottomF

XRControl.LeftF

XRControl.RightF

XRControl.TopF

Specify an element's location.

XtraReport.PageHeight

XtraReport.PageWidth

Specify the dimensions of report pages.

XtraReport.Margins

Specifies the page margins of a report.

MultiColumn.ColumnWidth

MultiColumn.ColumnSpacing

Specify the width of report columns and the spacing between them.

XRShape.LineWidth

Specify the Shape control's line width.

XRBarCode.Module

Specifies the width of the narrowest module (a bar or white space) in a bar code.

XRCrossBandControl.StartPointF

XRCrossBandControl.EndPointF

Specify the start and end coordinates of a cross-band control.