Home Devices

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?

Thanks
Chantal MArchand (People Inc.)

Comments

  • 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.

    uses
    ppUtils, ppBackgroundPrintManager;

    begin

    if ppInMainThread then
    gBackgroundPrintManager.OnThreadTerminated := ThreadTerminatedHandler;

    ...

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2013
    Thankx, we'll try that!

    Chantal

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