How can I find out when Background Printing is done?
We are using RB 12.2
Wwe are printing a report from code.
We don't want to see the generate/cancel window, so we enabled
printing in background.
Works fine, but how can we know when the printing is done?
Is there an event of property that returns the printing status?
Thanks
Chantal MArchand (People Inc.)
Wwe are printing a report from code.
We don't want to see the generate/cancel window, so we enabled
printing in background.
Works fine, but how can we know when the printing is done?
Is there an event of property that returns the printing status?
Thanks
Chantal MArchand (People Inc.)
This discussion has been closed.
Comments
If you are using the BackgroundPrinting feature you can implement the
OnThreadTerminated event of the BackgroundPrintManager to know when the
report has finished printing.
uses
ppUtils, ppBackgroundPrintManager;
begin
if ppInMainThread then
gBackgroundPrintManager.OnThreadTerminated := ThreadTerminatedHandler;
...
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Chantal
On Thu, 10 Oct 2013 09:12:08 -0600, "Nico Cizik (Digital Metaphors)"