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?
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.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com