Before Print still being called after removed
Hello
I have a report where I set up all of the events at runtime, no events are
attached at design time.
If there is an error I clear all of the events from the report, load a
different template and display error information.
However, even though I have the line
Report.BeforePrint:=NIL
The before print procedure that I associated with the BeforePrint event
previously, is still being called.
Any ideas?
Cheers
Paul
I have a report where I set up all of the events at runtime, no events are
attached at design time.
If there is an error I clear all of the events from the report, load a
different template and display error information.
However, even though I have the line
Report.BeforePrint:=NIL
The before print procedure that I associated with the BeforePrint event
previously, is still being called.
Any ideas?
Cheers
Paul
This discussion has been closed.
Comments
Where do you have the code that initializes the report? Are you using the
ReportVolume.OnReportLoadEnd or the ReportVolume.BeforePublishReport event?
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
You might try using the ReportVolume.OnReportLoadEnd event to initialize
Report.BeforePrint to nil. Perhaps Report.BeforePrint is firing prior to
ReportVolume.BeforePublishReport.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com