External execution method
How to run an external method to FastReport component at a particular event by calling a method contained in a unit of Delphi?
Example:
Rel.FindObject('SubR').OnBeforePrint := DoOnBeforePrint;
procedure TForm1.DoOnbeforeprint;
begin
executes the code contained here
end;
Comments
every item in the report fires these external events
read the programmers manual on how to use the events