Sum in Header
When I run a report in the Pantheon for the first time does not appear to me SUM in header and if I close my report and start again shows SUM in header. Could be a problem GetGlobalVariable(), if I put only Get(), I get error "Unknown variable or datafield"..
procedure GroupFooter1OnBeforePrint(Sender: TfrxComponent);
begin
SetGlobalVariable(<qReportIzpis."acCostDrv">,
FloatToStr(<SUM(<qReportIzpis."anStockPrice"> * <qReportIzpis."anQty">,Detail)>));
procedure PoslDogHeaderOnBeforePrint(Sender: TfrxComponent);
begin
if Engine.FinalPass then
Memo5.Text :=vartostr( GetGlobalVariable(<qReportIzpis."acCostDrv">));
end;
Comments
see sample in the main demo under dialogs and script
totals in group header.
Thank you..