Contents - Events - Methods - Properties
TTXCustomController is base class for non-printable components.
Description
Do not create inctance of TTXCustomController.
Contents - TTXCustomController - Properties - Methods
AfterPrint
BeforePrintDelphi declaration
property AfterPrint: TTXAfterPrintEvent read FAfterPrint write FAfterPrint;
C++ declaration
__property TTXAfterPrintEvent AfterPrint={ read=FAfterPrint, write=FAfterPrint }
Description
AfterPrint event is triggered after the contents of TTXCustomController are inserted into the report.
OnNeedDataDelphi declaration
property BeforePrint: TTXBeforePrintEvent read FBeforePrint write FBeforePrint;
C++ declaration
__property TTXBeforePrintEvent BeforePrint={ read=FBeforePrint, write=FBeforePrint }
Description
BeforePrint event is triggered before the contents of TTXCustomController are inserted into the report.
Delphi declaration
property OnNeedData: TTXOnNeedDataEvent read FOnNeedData write FOnNeedData;
C++ declaration
__property TTXOnNeedDataEvent OnNeedData={ read=FOnNeedData, write=FOnNeedData }
Description
Use OnNeedData event to read data from external sources other than databases.
Contents - TTXCustomController - Properties - Events
GetSysInfoStr
PrepareReportDelphi declaration
function GetSysInfoStr(ThisType: TTXSysDataType; FormatString: String): String;
C++ declaration
virtual System::AnsiString __fastcall GetSysInfoStr(TTXSysDataType ThisType, System::AnsiString FormatString)
Description
Use GetSysInfoStr to read the system info.
Delphi declaration
procedure PrepareReport(Strings: TStrings; BeginNew, Finalize: Boolean);
C++ declaration
virtual void __fastcall PrepareReport(Classes::TStrings *Strings, bool BeginNew, bool Finalize)
Description
PrepareReport prepares the report.
Contents - TTXCustomController - Methods - Events
ColsPerPage
Columns per page.DataSourceDelphi declaration
property ColsPerPage: Integer read GetColsPerPage write SetColsPerPage;
C++ declaration
__property int ColsPerPage={ read=GetColsPerPage, write=SetColsPerPage, nodefault }
Description
Number of characters on a printer page in horizontal direction.Use the TTXPrinter component to setup page size and other printer parameters.
DestStringsDelphi declaration
property DataSource: TDataSource read GetDataSource write SetDataSource default Nil;
C++ declaration
__property Db::TDataSource *DataSource={ read=GetDataSource, write=SetDataSource, default=0 }
Description
Use DataSource to bind your report with the database.DetailBand will be repeated once for each record found in the database.
Destination strings.DetailBandDelphi declaration
property DestStrings: TStrings read GetDestStrings write SetDestStrings;
C++ declaration
__property Classes::TStrings *DestStrings={ read=GetDestStrings, write=SetDestStrings, nodefault }
Description
TStrings object that holds the contents of the generated report.
Detail band.LinesPerPageDelphi declaration
property DetailBand: TTXRBand read FDetailBand write SetDetailBand default Nil;
C++ declaration
__property TTXRBand *DetailBand={ read=FDetailBand, write=SetDetailBand, default=0 }
Description
Contents of the DetailBand are inserted once for each data record in the datasource.
Lines per page.MasterDelphi declaration
property LinesPerPage: Integer read GetLinesPerPage write SetLinesPerPage;
C++ declaration
__property int LinesPerPage={ read=GetLinesPerPage, write=SetLinesPerPage, nodefault }
Description
Number of lines on one page.Set LinesPerPage to 0 to print on continous paper without page breaks.
Use the TTXPrinter component to setup page size and other printer parameters.
Master component.Delphi declaration
property Master: TTXMaster read GetMaster write SetMaster default Nil;
C++ declaration
__property TTXMaster *Master={ read=GetMaster, write=SetMaster, default=0 }
Description
Use Master to create master/datail reports.Contents of the TTXCustomController will be inserted once for each row in the Master report.