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

Beforeprint executed twice

edited February 2004 in Subreports
Hello,

Is it normal the a "BeforePrint"-event is executed twice when printing from
a preview screen ?
Once when calling Report.Print (devicetype=screen), and once when clicking
the printer-button on the screen ?

kind regards,

Dirk Janssens.

Comments

  • edited February 2004
    Hi Dirk,

    Yes, many of the events in ReportBuilder (with the exception of the OnCalc
    event of the TppVariable) will fire more than once during report generation.
    This is why it is never a good idea to make numerical calculations inside
    any RB events other than the OnCalc.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.