Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

How to determine if report has printed using RAP

edited July 2004 in RAP
Hi,

I have a report and I want to use a pass-thru function to update some db
values after the report has printed. I was hoping to use the
OnPrintingComplete event to call the rap pass-thru function but the event
does not appear in the events list on the calc tab. Is there another event I
can use to determine that the report has actually been printed and not just
previewed?

Thanks,

Ray

Comments

  • edited July 2004
    Hi Ray,

    Try using the Report.AfterPrint event. Something like the following...

    procedure ReportAfterPrint;
    begin
    if Report.PrinterDevice <> nil then
    ShowMessage('Printed to Printer');
    end;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2004
    Nico,

    That worked.

    Thanks for your help,

    Ray
This discussion has been closed.