XtraReport.PaperKind Property

Gets or sets the type of paper for the report.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

[SRCategory(ReportStringId.CatPageSettings)]
public PaperKind PaperKind { get; set; }
<SRCategory(ReportStringId.CatPageSettings)>
Public Property PaperKind As PaperKind

Property Value

Type Description
PaperKind

A PaperKind enumeration value. By default, this property is set to PaperKind.Letter.

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.

See Also