Skip to main content
All docs
V25.2
  • IReportDataSourceHelper.SetupBeforePrint(XtraReport) Method

    Prepares the report for further printing.

    Namespace: DevExpress.ExpressApp.ReportsV2

    Assembly: DevExpress.ExpressApp.ReportsV2.v25.2.dll

    NuGet Package: DevExpress.ExpressApp.ReportsV2

    Declaration

    void SetupBeforePrint(
        XtraReport report
    )

    Parameters

    Name Type Description
    report XtraReport

    An XtraReport object that specifies the report.

    Remarks

    If you want to print a report in code, you should use the SetupBeforePrint method that executes the IReportDataSourceHelper.SetupReport method and triggers the IReportDataSourceHelper.BeforeShowPreview event.

    An example on how to use the SetupBeforePrint method is available in the How to: Print a Report Without Displaying a Preview topic.

    The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SetupBeforePrint(XtraReport) method.

    Note

    The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

    See Also