Skip to main content
A newer version of this page is available. .

XtraReport.PageWidth Property

Gets or sets the width of the report’s pages (measured in report units). This can only be set if the XtraReport.PaperKind is set to Custom.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v20.1.dll

NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.Reporting.Core

Declaration

[DefaultValue(-1)]
[SRCategory(ReportStringId.CatPageSettings)]
public int PageWidth { get; set; }

Property Value

Type Default Description
Int32 -1

An integer value equal to the width of the report’s pages.

Remarks

Usually, the height and width of a report’s pages are the appropriate height and width of the report’s paper kind, which is accessed via the XtraReport.PaperKind property. In this case, if the XtraReport.Landscape property is set to true, then the page height and width will be swapped with each other.

The page width can only be set if the XtraReport.PaperKind is set to the Custom value.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PageWidth 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