Modify report after PrepareReport
Hi,
We have our own preview form to display reports. With this preview form, users can simply show or hide some image of a invoice for exemple.
To show the report at the first time I call PrepareReport(True). After the user hide the image, so I must recall PrepareReport(True).
When I call PrepareReport a second time, the error "DataSet '''' does not exist" appears.
Thanks for your help.
We have our own preview form to display reports. With this preview form, users can simply show or hide some image of a invoice for exemple.
To show the report at the first time I call PrepareReport(True). After the user hide the image, so I must recall PrepareReport(True).
When I call PrepareReport a second time, the error "DataSet '''' does not exist" appears.
Thanks for your help.
Comments
It's not possible to call PrepareReport two times ?
Can't you display a parameters dialog box to the user before generating it, so you make the controls invisible before calling preparereport()?
Why this error message appears?