How can I find out when Background Printing is done?

edited October 2013 in Devices
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?

Chantal MArchand (People Inc.)


  • edited October 2013
    Hi Chantal,

    If you are using the BackgroundPrinting feature you can implement the
    OnThreadTerminated event of the BackgroundPrintManager to know when the
    report has finished printing.

    ppUtils, ppBackgroundPrintManager;


    if ppInMainThread then
    gBackgroundPrintManager.OnThreadTerminated := ThreadTerminatedHandler;


    Best Regards,

    Nico Cizik
    Digital Metaphors
  • edited October 2013
    Thankx, we'll try that!


    On Thu, 10 Oct 2013 09:12:08 -0600, "Nico Cizik (Digital Metaphors)"
This discussion has been closed.