XtraReportPreviewExtensions.ShowPageSetupDialog(IReport) Method

Displays the Page Setup dialog that allows users to customize page settings.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraPrinting.v20.2.dll

Declaration

public static DialogResult ShowPageSetupDialog(
    this IReport report
)
<ExtensionAttribute>
Public Shared Function ShowPageSetupDialog(
    report As IReport
) As DialogResult

Parameters

Name Type Description
report IReport

An object implementing the IReport interface.

Returns

Type Description
DialogResult

A DialogResult enumeration value.

Remarks

Call the ShowPageSetupDialog method to invoke the Page Setup dialog shown below.

PageSetupDialog

To be able to use this method, you should add the DevExpress.XtraPrinting.v20.2.dll to your project's References list.

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

XtraReport1 report = new XtraReport1();
report.ShowPageSetupDialog();

We recommend you use the ReportPrintTool class instead, which provides the similar PrintTool.ShowPageSetup method. This class also enables you to release the memory right after showing this dialog (for instance, by calling the Dispose method or utilizing the using statement).

See Also