ReportDataSourceHelper.SetupBeforePrint(XtraReport, ReportParametersObjectBase, CriteriaOperator, Boolean, SortProperty[], Boolean) Method

Prepares the report for further printing.

Namespace: DevExpress.ExpressApp.ReportsV2

Assembly: DevExpress.ExpressApp.ReportsV2.v18.1.dll

Declaration

public void SetupBeforePrint(
    XtraReport report,
    ReportParametersObjectBase parametersObject,
    CriteriaOperator criteria,
    bool canApplyCriteria,
    SortProperty[] sortProperty,
    bool canApplySortProperty
)
Public Sub SetupBeforePrint(
    report As XtraReport,
    parametersObject As ReportParametersObjectBase,
    criteria As CriteriaOperator,
    canApplyCriteria As Boolean,
    sortProperty As SortProperty(),
    canApplySortProperty As Boolean
)

Parameters

Type Name Description
XtraReport report

An XtraReport object that specifies the report.

ReportParametersObjectBase parametersObject

A ReportParametersObjectBase object that specifies report parameters.

CriteriaOperator criteria

A CriteriaOperator object used to filter data.

Boolean canApplyCriteria

true, if the criteria can be applied; otherwise, false.

SortProperty[] sortProperty

An array of SortProperty objects which specifies data sorting.

Boolean canApplySortProperty

true, if the sorting can be applied; otherwise, false.

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

If there is no need to apply criteria, sorting, and pass report parameters, use another overload of the SetupBeforePrint method that takes the single report parameter. An example of using this overload is provided in the How to: Print a Report Without Displaying a Preview topic.

See Also