Search code examples
delphiquickreports

Delphi QuickReport: print number of grouped records


In QuickReport 3 and Delphi, how do you print the number of records that where grouped by the TQRBand type GroupFooter?

Does it involve expression and Count? Thanks.

EDIT: could be named as "generate a subtotal for each group".

Let's say we have

<header>
<title>
<group header>
<deail>
<deail>
<deail>
<group footer> print here 3

<group header>
<deail>
<deail>
<group footer> print here 2

<summary>

Solution

  • Couldn't you just do this yourself? Make a memory variable iDetail: Integer You will have to reinitialize it to zero in the applicable OnBeforePrint method handler. Then where you want it to print do a inttostr(idetail).

    I have found QuickReport to have many limitations where you have to program stuff like this yourself.