Totals in group header??

edited 8:46AM in FastReport 3.0
The demo which tittled "Total in group header"

I am trying to do the same example with a new projects I am copying DataSets objects (RepQuery, RepQuerySource, QueryDS) and frxReport1 from main form of the demo. Then editing the report by copying the bands from the original demo report design then writing the script on the appropriate obp event.

Then previewing the report and the summing values are not printing then having an error dialog box with this message:

The following errors occured:
Unknown variable or field: Action Club
Unknown variable or field: Action Diver Supply
Unknown variable or field: Adventure Undersea
Unknown variable or field: American SCUBA Supply
Unknown variable or field: Aquatic Drama
...
...

and following like that.

Where am I doing wrong? Thanks for help.

Comments

  • edited 8:46AM
    In addittion on the same demo: When I modified the script from

    procedure Band7OnBeforePrint(Sender: TfrxComponent);
    begin
    Set(<Sales."Company">, Sum(<Sales."Qty">*<Sales."List Price">));
    end;


    to

    procedure Band7OnBeforePrint(Sender: TfrxComponent);
    begin
    Set(<Sales."Company">, Sum(<Sales."List Price">));
    end;


    total is not calculating.
  • edited 8:46AM
    Do you have frxReport.EngineOptions.DoublePass set to true?

    Wayne
  • edited 8:46AM
    Thanks Wayne, I set frxReport.EngineOptions.DoublePass true but unfortunately It didn' work. ;)

Leave a Comment