Platoo TXReport TTXCalcLabel

Contents - Events - Properties


Description
Use TTXCalcLabel to calculate totals/subtotals and print the result.

TTXCalcLabel - Events

Contents - TTXCalcLabel - Properties

OnCalculate

Delphi declaration
property OnCalculate: TTXCalcPrinEvent read FOnCalculate write FOnCalculate;
C++ declaration
__property TTXCalcPrinEvent OnCalculate={ read=FOnCalculate, write=FOnCalculate }

Description
OnCalculate event is triggered every time the calculation process is executed.

OnReset

Delphi declaration
property OnReset: TTXCalcPrinEvent read FOnReset write FOnReset;
C++ declaration
__property TTXCalcPrinEvent OnReset={ read=FOnReset, write=FOnReset }

Description
OnReset is triggered every time when TTXCalcLabel is cleared.


TTXCalcLabel - Properties

Contents - TTXCalcLabel - Events

AsDateTime

Delphi declaration
property AsDateTime: TDateTime read GetAsDateTime;
C++ declaration
__property System::TDateTime AsDateTime={ read=GetAsDateTime }

Description
Read AsDataTime to get the calculation result as TDateTime.

AsFloat

Delphi declaration
property AsFloat: Double read GetAsFloat;
C++ declaration
__property double AsFloat={ read=GetAsFloat }

Description
Read AsFloat to get the calculation result as a double.

AsInteger

Delphi declaration
property AsInteger: Integer read GetAsInteger;
C++ declaration
__property int AsInteger={ read=GetAsInteger, nodefault }

Description
Read AsInteger to get the calculation result as an integer.

AsString

Delphi declaration
property AsString: String read GetAsString;
C++ declaration
__property System::AnsiString AsString={ read=GetAsString, nodefault }

Description
Read AsString to get the calculation result as a string.

CalcBand

Delphi declaration
property CalcBand: TTXRBand read FCalcBand write SetCalcBand;
C++ declaration
__property TTXRBand *CalcBand={ read=FCalcBand, write=SetCalcBand, nodefault }

Description
CalcLabel calculation is triggered every time CalcBand is printed.

CalcIS_NULL

Delphi declaration
property CalcIS_NULL: Boolean read FCalcIS_NULL write FCalcIS_NULL;
C++ declaration
__property bool CalcIS_NULL={ read=FCalcIS_NULL, write=FCalcIS_NULL, nodefault }

Description
Set CalcIS_NULL to false to skip the calculation process when the database field is clear.

CalcOperation
Type of calculation operation performed by TTXCalcLabel .

Delphi declaration
TTXCalcOperation=(txSum, txMin, txMax, txAve, txCount);
C++ declaration
enum TTXCalcOperation { txSum, txMin, txMax, txAve, txCount };

Description
Value Meaning

txSum Sum of data.

txMin Minimum value of data.

txMax Maximum value of data.

txAve Average value of data.

txCount Count of data.

CalcPrintedOnly

Delphi declaration
property CalcPrintedOnly: Boolean read FCalcPrintedOnly write FCalcPrintedOnly;
C++ declaration
__property bool CalcPrintedOnly={ read=FCalcPrintedOnly, write=FCalcPrintedOnly, nodefault }

Description
Set CalcPrintedOnly to true when TTXCalcLabel has to be calculated only when its CalcBand was actually printed, set to false when the label has to be reset when CalcBand was printed or when the printing of CalcBand was skipped.

Count
Count of records.

Delphi declaration
property Count: Integer read FCount;
C++ declaration
__property int Count={ read=FCount, nodefault }

Description
Read Count to find out how many records have been processed by the label.

If CalcOperation is txCount, Count returns the same result as AsInteger.

FormatString

Delphi declaration
property FormatString: String read FFormatString write FFormatString;
C++ declaration
__property System::AnsiString FormatString={ read=FFormatString, write=FFormatString, nodefault }

Description
Use FormatString to control the formatting of data printed by the label. See AnsiString help for information on formatting.

ResetBand

Delphi declaration
property ResetBand: TTXRBand read FResetBand write SetResetBand;
C++ declaration
__property TTXRBand *ResetBand={ read=FResetBand, write=SetResetBand, nodefault }

Description
CalcLabel cleared every time ResetBand is printed.

ResetPrintedOnly

Delphi declaration
property ResetPrintedOnly: Boolean read FResetPrintedOnly write FResetPrintedOnly;
C++ declaration
__property bool ResetPrintedOnly={ read=FResetPrintedOnly, write=FResetPrintedOnly, nodefault }

Description
Set ResetPrintedOnly to true when TTXCalcLabel has to be reset only when its ResetBand was actually printed, set to false when the label has to be reset when ResetBand was printed or when the printing of ResetBand was skipped.