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

BeforePrint fires twice

edited November 2001 in General
Hi,

In my report, the BeforePrint Event fires twice although the PassSetting is
set to psOnePass. Is this normal? Or is it because it uses TExtraDevice
and PrintToMemory is set to true?

TIA,
Ping Kam

Comments

  • edited November 2001
    If the report is generated once for every output device. For example, when
    you call Report.Print, it will print by default to the screen preview,
    firing all report events. Then from the preview you can select to print to
    the printer. If Report.CachePages is false, and pages haven't been cached,
    then the report is regenerated for the printer, which causes all of the
    events to refire.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited November 2001
    Jim Bennett (Digital Metaphors) wrote in
This discussion has been closed.