Skip to main content
All docs
V25.1
  • XtraReport.PageHeightF Property

    Specifies the height of report pages (measured in report units). Has effect only if the XtraReport.PaperKind property is set to Custom.

    Namespace: DevExpress.XtraReports.UI

    Assembly: DevExpress.XtraReports.v25.1.dll

    NuGet Package: DevExpress.Reporting.Core

    Declaration

    [DefaultValue(-1F)]
    [SRCategory(ReportStringId.CatPageSettings)]
    public float PageHeightF { get; set; }

    Property Value

    Type Default Description
    Single -1

    Report page height.

    Remarks

    Width and height of report pages match paper width and height specified by the XtraReport.PaperKind property. When you set the XtraReport.Landscape property to true, page width and height values are swapped.

    Important

    Page width and height can be customized only if XtraReport.PaperKind is Custom. Any other paper kind has predefined width and height.

    If the XtraReport.RollPaper is true, the PageHeightF property has no effect.

    The following code snippet creates a new report with a custom page size specified in inches:

    using DevExpress.XtraReports.UI;
    // ...
    public static XtraReport CreateReport() {
        XtraReport report = new XtraReport() {
            ReportUnit = ReportUnit.Inches,
            PaperKind = DevExpress.Drawing.Printing.DXPaperKind.Custom,
            PageWidthF = 8.26f,
            PageHeightF = 11.69f
        };
        return report;
    }
    
    See Also