BeforePrint event of the report of a subreport
Hi All,
I have attached a TppReport to a TppSubreport wich is contained in the Summary
band of the main report.
When i assign a procedure to the BeforePrint property of the TppReport it
doenst get executed when the supreport is eventually printed.
Am i doing something wrong or is this behaviour "by design" ?
greetings
Bas Schouten
I have attached a TppReport to a TppSubreport wich is contained in the Summary
band of the main report.
When i assign a procedure to the BeforePrint property of the TppReport it
doenst get executed when the supreport is eventually printed.
Am i doing something wrong or is this behaviour "by design" ?
greetings
Bas Schouten
This discussion has been closed.
Comments
Events such as the BeforePrint and AfterPrint are not available for Child
Reports. What exactly does this code do? Perhaps it can be moved to the
BeforePrint of the main report?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I solved it by setting the OnPrint event of the Subreport to the Onprint
of the TppReport:
if Assigned(FRuntimeReport.Parent) and (FRuntimeReport.Parent is TppSubReport)
then
TppSubreport(FRuntimeReport.Parent).OnPrint := OnReportBeforePrint;