ReportDataSourceHelperBase.SetupBeforePrint(XtraReport, ReportParametersObjectBase, CriteriaOperator, Boolean, SortProperty[], Boolean) Method
Prepares the report for further printing.
Namespace: DevExpress.ExpressApp.ReportsV2.Services
Assembly: DevExpress.ExpressApp.ReportsV2.v24.2.dll
NuGet Package: DevExpress.ExpressApp.ReportsV2
#Declaration
public void SetupBeforePrint(
XtraReport report,
ReportParametersObjectBase parametersObject,
CriteriaOperator criteria,
bool canApplyCriteria,
SortProperty[] sortProperty,
bool canApplySortProperty
)
#Parameters
Name | Type | Description |
---|---|---|
report | Xtra |
An Xtra |
parameters |
Report |
A Report |
criteria | Criteria |
A Criteria |
can |
Boolean | true, if the criteria can be applied; otherwise, false. |
sort |
Sort |
An array of Sort |
can |
Boolean | true, if the sorting can be applied; otherwise, false. |
#Remarks
If you want to print a report in code, you should use the SetupBeforePrint method that executes the ReportDataSourceHelperBase.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.