Events in Delphi
Hello,
I start programming with FastReport and I have a question about the events.
What is the best way to use the report's events in Delphi? For exemple, how can I launch code in delphi when the BeforePrint event of the report occurs.
I want to translate my old QuickReport reports to FastReport. I used the OnStartPage et OnEndPage events. How can I translate these events?
Thank you for your answer.
I start programming with FastReport and I have a question about the events.
What is the best way to use the report's events in Delphi? For exemple, how can I launch code in delphi when the BeforePrint event of the report occurs.
I want to translate my old QuickReport reports to FastReport. I used the OnStartPage et OnEndPage events. How can I translate these events?
Thank you for your answer.
Comments
You can also use the find object method to find an object and modify its properties
after a report design is loaded and before showreport or prepare report is called.
If my page header and my page footer band have its height equal 0, is the before print event works?
Best regards
to have events available for use (ie seed variable values etc).
you dont have to have a page header and a page footer.
A band is just a place holder on the design page, the bands are processed from top down according to their type, basicly they control the report engine's output to the finished page, the band is not output only the objects it contains.
Be very careful when altering design heights of bands from delphi if you make the height to small
you can widow objects to the page.
read the programmers manual mostly as working from delphi
and the users manual mainly as working inside the report.