Closing a report
Hi,
how can i close(destroy) a report while it's being generated? I need that if
i find any error in the data that should be printed.
If i call the Cancel method, the report is still partially displayed and i
don't want this. I also tried the Free method, but i get an exception(i also
disconnected the report from the data pipeline, but it seems it doesn't
help).
Thanx
how can i close(destroy) a report while it's being generated? I need that if
i find any error in the data that should be printed.
If i call the Cancel method, the report is still partially displayed and i
don't want this. I also tried the Free method, but i get an exception(i also
disconnected the report from the data pipeline, but it seems it doesn't
help).
Thanx
This discussion has been closed.
Comments
Try calling ppReport.PreviewForm.Close to close the previewer in the middle
of generation. If you need to free the report component after this you will
need to use a TTimer to make sure the report has finished processing before
you free it. Below is a link to an example of this.
http://www.digital-metaphors.com/tips/FreeReport.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com