I am not sure I quite understand the flow, but here is my view of it:
- Load report
- Enter parameters
- View report
- Close report
- Re-load the same report
- Re-use the parameters entered in (2) above
- View report
For ensuring that the previous data is not on the report (e.g.; step (3)), make sure that the report is disposed correctly ( use .close and .dispose on the report object). As long as the "Saved Data" option is not enabled (see KBA 1984381), the report should not have any data on re-use.
Re-using the same parameters as you used in (2) will require that you somehow save what the user entered and on second load of the report, step (5) you enter those parameters in your code. There are no CR APIs that will do this for you.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter