IReportDataSourceHelper.SetupBeforePrint(XtraReport, ReportParametersObjectBase, CriteriaOperator, Boolean, SortProperty[], Boolean) Method
Prepares the report for further printing.
Namespace: DevExpress.ExpressApp.ReportsV2
Assembly: DevExpress.ExpressApp.ReportsV2.v24.1.dll
NuGet Package: DevExpress.ExpressApp.ReportsV2
Declaration
Parameters
Name | Type | Description |
---|---|---|
report | XtraReport | An XtraReport object that specifies the report. |
parametersObject | ReportParametersObjectBase | A ReportParametersObjectBase object that specifies report parameters. |
criteria | CriteriaOperator | A CriteriaOperator object used to filter data. |
canApplyCriteria | Boolean |
|
sortProperty | SortProperty[] | An array of SortProperty objects that specifies the sort order. |
canApplySortProperty | Boolean |
|
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.
If there is no need to apply criteria and sorting, and pass report parameters, use another overload of the SetupBeforePrint
method that takes a single report parameter. An example on how to use this overload is available in the How to: Print a Report Without Displaying a Preview topic.