ReportSettingsBase.PaperKind Property
Gets or sets paper kind for the report.
Namespace: DevExpress.XtraReports.UserDesigner
Assembly: DevExpress.XtraReports.v19.1.dll
NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.Core
Declaration
Property Value
Type | Default | Description |
---|---|---|
PaperKind | **Letter** | Paper kind for the report. |
Remarks
If your report uses a standard paper size (the PaperKind
is set to any value but Custom), the PageHeight and PageWidth do not accept user-defined values.
Note
If the PaperKind property is set to Custom, set the PageHeight and PageWidth properties to custom paper’s height and width.
The code sample below illustrates how to create an End-User Designer instance and set the default page size to Letter for its reports.
using DevExpress.XtraReports.UI;
using DevExpress.XtraReports.UserDesigner;
// ...
XRDesignForm form = new XRDesignForm();
XRDesignMdiController reportDesigner = form.DesignMdiController;
reportDesigner.DefaultReportSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;
reportDesigner.DefaultReportSettings.Landscape = true;
reportDesigner.DefaultReportSettings.RollPaper = false;
reportDesigner.DefaultReportSettings.ReportUnit = ReportUnit.HundredthsOfAnInch;
reportDesigner.DefaultReportSettings.Margins = new System.Drawing.Printing.Margins(50, 50, 100, 100);
form.ShowDialog();
See Also