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

XtraReport.PaperKind Property

Gets or sets the type of paper for the report.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v17.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

[SRCategory(ReportStringId.CatPageSettings)]
[DefaultValue(PaperKind.Letter)]
public PaperKind PaperKind { get; set; }

Property Value

Type Default Description
PaperKind **Letter**

A PaperKind enumeration value.

Remarks

Setting the paper type to any member of the PaperKind enumeration except Custom will prevent the XtraReport.PageWidth, XtraReport.PageHeight, and XtraReport.PageSize properties from being set to user defined values.

Note

If the PaperKind property is set to Custom, then the printer paper will be selected according to the XtraReport.PaperName property’s value. In this case, it’s also necessary to set the XtraReport.PageWidth and XtraReport.PageHeight properties to the corresponding values of the paper selected.

Note

When setting ReportUnit.TenthsOfAMillimeter as global report units, all the newly created reports will have the 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 PaperKind 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