Online Documentation for Advanced Excel Report for RAD Studio

OnAfterBuild event - Example


procedure TReportContainer.SheetPropAfterBuild(Sender: TObject;

  Report: _Worksheet; RowCount, ColCount: Integer);

var

  XLApp: Variant;

begin

  Report.Name := 'Sheet name';

  XLApp := Report.Application;

  XLApp.Run('UserMacro');  // Not to set all the procedure parameters.

end;