Back to Devexpress

Use Report Parameters

xtrareports-4812-detailed-guide-to-devexpress-reporting-shape-report-data-use-report-parameters.md

latest3.4 KB
Original Source

Use Report Parameters

  • Dec 04, 2020
  • 3 minutes to read

Report parameters pass data to a report before it is generated in preview.

The Document Viewer displays the Parameters panel that shows editors for the visible report parameters and allows users to specify parameter values. You can also specify parameter values in code.

The Parameters panel displays the specified parameters values. Disable the report’s RequestParameters option to let the Document Viewer create a document with predefined parameter values and avoid the “Waiting for parameter values” message in Preview.

To hide the Parameters panel, disable the Parameter.Visible property for all report parameters.

Tip

Youtube video: DevExpress Reporting Parameters

The topics in this section describe how to create report parameters of different types and specify their values:

Use report parameters in the following cases:

  • In Filter Strings

  • In Expressions

  • In Mail Merge

  • As a Value Source for Control Parameters

  • As a Value Source for Data Source Parameters

  • Display a Report Parameter Value in a Report Explicitly

Wherever you specify a parameter name, prefix it with the question mark character.