Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2019-12

fcl-report - Aggregates are initialized on every page - duplicat exception in expressionparser

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andi Friess

Hello,

i have found out, if i make a report with more than one page and with aggregate variables, this variables are initialized more than once in procedure TFPCustomReport.InitializeAggregates(IsFirstPass : Boolean); and this raise and exception, because the variables are duplicates. The exception is correct.

The reason is, InitializeAggregates is called for every page in the designed report and not once.

To test this, make a report with Aggregates and design more than one page. Then run the report -> exception.

Andreas