HotXLS Docs

BeforeRecord property

Occurs before each record is exported, so you can validate records or skip individual dataset records

Syntax

TBeforeRecord = procedure(Sender: TObject; DataSet: TDataSet; Level: Integer; var ExportRecord: Boolean) of object; property BeforeRecord: TBeforeRecord read FBeforeRecord write FBeforeRecord;
Sender TObject. The TDataToXLS component that raised the event
DataSet TDataSet. The dataset record that is about to be exported
Level Integer. Zero for the master dataset, larger values for nested detail datasets
ExportRecord Boolean. Set to False to skip the current record; True exports it

Example

This example hooks the BeforeRecord event handler

DataToXLS.BeforeRecord := MyBeforeRecordHandler;