none
Validate Report Parameters before executing a query RRS feed

  • Question

  •  My report has two DateTime params: "From Date" and "To Date" which allow me to specify a date range for retrieved data. So, before report query will be executed I just want to validate "from" and "to" dates. If a date range is not applicable (more than month for example), the report's query should ne be executed and appropriate notification message should appear.
    1. Can it be done in report editor by specifying some conditions (whatever)?
    2. Can it be done in code through ReportViewer class? I can catch ViewButtonClick event and test dates but I do not succeed to stop report processing.
    Thanks
    • Edited by Timur Gn. IFP Tuesday, September 9, 2008 7:59 AM error in typing
    Tuesday, September 9, 2008 7:44 AM

All replies