Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XtraReport.ReportUnit Property

Specifies the system of measurement that is used throughout a report for expressing the values of certain properties (e.g., an element’s location, dimensions and margins).

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[DefaultValue(ReportUnit.HundredthsOfAnInch)]
[SRCategory(ReportStringId.CatBehavior)]
public ReportUnit ReportUnit { get; set; }

#Property Value

Type Default Description
ReportUnit HundredthsOfAnInch

A ReportUnit enumeration value.

Available values:

Name Description
HundredthsOfAnInch

The unit of measurement is in hundredths of an inch.

TenthsOfAMillimeter

The unit of measurement is in tenths of a millimeter.

Pixels

The unit of measurement is in pixels (one pixel equals 1/96 of an inch).

#Remarks

The ReportUnit property specifies the units of measurement (Imperial or Metric) that are used to express values of such properties as XRControl.SizeF and XRControl.LocationF.

Only the XRControl.BorderWidth property value is expressed in ReportUnit.Pixels.

For a complete list of properties affected by this option, see the Report Units of Measurement topic.

Note

You can set the ReportUnit property globally, so that all the newly created reports have this property set to the required value. For this purpose, use the Report Designer Options dialog available within the XtraReports menu.

When setting ReportUnit.TenthsOfAMillimeter as report units globally, the empty and data-based reports newly created via the Report Wizard will have the XtraReport.PaperKind property set to PaperKind.A4. Otherwise, PaperKind.Letter is set by default.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ReportUnit property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also