This example demonstrates how to create a parameter, and pass it to a report at runtime.
To do this, an instance of the Parameter class is created, and then added to the report's XtraReport.Parameters collection. Then, the parameter's value can be used in the report's FilterString, or displayed in an XRLabel control. And, when the report is being previewed, an end-user is prompted to enter the parameter's value.
See also:
- How to silently pass a parameter's value to a report;
- How to provide custom editors for the report parameters;
- How to create a drill-through report.
Question Comments
Added By: Maulik Joshi 2 at: 6/10/2015 2:10:52 PM
I tried to do same thing, but my parameter value is displayed in parameter section but when I click on submit button nothing happens. It does not pass the parameter to stored procedure and filter the result
Added By: Ingvar (DevExpress Support) at: 6/11/2015 2:25:43 AMHello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T254223: How to add parameters to a report at runtime. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.