Cancel a report
I am creating a report at runtime. If the user closes the form after the
call to PrintToDevices and before the report is displayed in an TppViewer
on the form, an access violation occurs. I tried to call tppReport's
cancel method from the OnCloseQuery of the form. This causes an access
violation in a different place.
How do I cancel the report?
Thanks.
call to PrintToDevices and before the report is displayed in an TppViewer
on the form, an access violation occurs. I tried to call tppReport's
cancel method from the OnCloseQuery of the form. This causes an access
violation in a different place.
How do I cancel the report?
Thanks.
This discussion has been closed.
Comments
immediate. You can also try using Stop which will allow all stretching
components to finish printing or Stop which will stop the report after it is
done with the current page.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com