Gets or sets report page height, measured in report units. You can set this property only if the PaperKind is set to Custom.
Report page height.
You can access this nested property as listed below:
|Object Type||Path to PageHeight|
If your report uses a standard paper size (the PaperKind is set to any value but Custom), the PageHeight and PageWidth properties are set to the selected paper kind’s height and width. In this case, if you change the Landscape property value, page width and page height swap their values.
The code sample below illustrates how to create an End-User Designer instance and set the default page size to custom size (4 inches wide by 6 inches tall) 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();