In my previous post about what's new in XtraReports for v2008.2 I teased about this new feature. And some of you have guessed it right. Report parameters!.
XtraReport now has a Parameters collection where you can define your params.
Each report parameter can be used anywhere in the report. In filtering expressions, in the formula builder dialog, etc.
For example:
"[Country] = [Parameters.parameter1]"
Now all we need is some UI where an end user can enter the parameter value. And for the default print preview dialogs, that UI is generated automatically.
Cheers,
Azret