Online Documentation for Advanced Excel Report for RAD Studio
property OnDataEof: TEXLReportCheckEofEvent;
TEXLReportCheckEofEvent = procedure(Sender: TObject; var Eof: Boolean) of object;
Use the OnDataEof event if you build report from the data source different from the TDataSet descendant to define the condition of finishing the report building. The OnDataEof event takes place before writing each data row to the report, and checks the value of the Eof parameter. If it is true, the report building terminates.