Skip to main content

PrintingSystemBase.CreatePage() Method

Creates a new empty page using the current printing system’s page settings.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v24.2.Core.dll

Declaration

public Page CreatePage()

Returns

Type Description
Page

A Page object which represents a new empty page.

Remarks

Use the CreatePage method when it’s necessary to insert an empty page into the existing document generated by a PrintingSystem object. To do this, create a new blank page via the CreatePage method, and then add or insert it into the printing system’s PrintingSystemBase.Pages collection.

using DevExpress.XtraReports.UI;
// ...

private void button1_Click(object sender, System.EventArgs e) {
    var report = new XtraReport1();
    var printTool = new ReportPrintTool(report);

    report.CreateDocument();
    var ps = report.PrintingSystem;
    ps.Pages.Add(ps.CreatePage());

    printTool.ShowPreviewDialog();
}
See Also