Online Documentation for Advanced Excel Report for RAD Studio
OnGetFieldValue event - Example
procedure TReportContainer.UserDataGetFieldValue(Sender: TObject;
const Field: String; var Value: OleVariant);
begin
if AnsiCompareText(Field, 'No') = 0 then
Value := FCounter
else if AnsiCompareText(Field, 'String') = 0 then
Value := Format('This is the string %d.', [FCounter])
else if AnsiCompareText(Field, 'Number') = 0 then
Value := Random(100);
end;