There is no reason the BeforePrint event shouldn't fire unless you are loosing a reference to it.
Are you by chance loading templates? If you implement an event then load a report template, the event reference will be lost. You will need to use the template event OnLoadEnd to reassign the event.
Comments
Yes, take a look at demo 124 located in the \Demos\1. Reports\... directory
for an example of how to print a page list. (dm0124.pas)
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
My problem is, he isn't fireing an BeforePrint Event.
I put a breakpoint in my BeforePrint EventBut it is'nt Fired.
I use the Report.Print to print the report
any sugestions ?
kr
There is no reason the BeforePrint event shouldn't fire unless you are
loosing a reference to it.
Are you by chance loading templates? If you implement an event then load a
report template, the event reference will be lost. You will need to use the
template event OnLoadEnd to reassign the event.
http://www.digital-metaphors.com/rbWiki/Design/Templates/How_To...Troubleshoot_Lost_Event_Handlers
http://www.digital-metaphors.com/rbWiki/Design/Templates/Using_Template_Events
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com