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

Report AfterPrint called twice

edited September 2007 in RAP
In AfterPrint (RAP) event i call a passthrough function in delphi,
when i run my app for the first time and i print the report, the
function is called once at the end of the print, when i print the
report the second time the function is called before the print and
after the print.

RB 10.6

Comments

  • edited September 2007
    Hi Max,

    Does this occur when printing directly to the printer or from the previewer?
    In my testing when printing from the preview window, the AfterPrint event
    fires once for the previewer and once for the printer (as designed). If I
    print directly to the printer, it only fires once per print.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2007
    I have found another call to that function in OnDestroy event.
This discussion has been closed.