PrintingSystemBase.CreatePage() Method

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

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v20.1.Core.dll

Declaration

public Page CreatePage()
Public Function CreatePage As Page

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