Is it possible to print on the group header the masterdata rowcount ?
Hello, I know how to print the masterdata rowcount on the group footer
var
WCompteur : Integer ;
procedure GroupHeader1OnBeforePrint(Sender: TfrxComponent);
begin
WCompteur := 0 ;
end;
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
inc(WCompteur) ;
end;
procedure GroupFooter1OnBeforePrint(Sender: TfrxComponent);
begin
MemoNb.text := inttostr(WCompteur) ;
end;
But this way is not usable to print on the group header because the count is not yet known.
I want to print the group name with the rowcount as a title, before the rows.
Is it a solution ?
Comments
I know how to print the masterdata rowcount on the group footer
Just use COUNT function
I want to print the group name with the rowcount as a title, before the rows.
Read https://www.fast-report.com/publicdownload/docs/vcl/FR6/HTMLEN/printingthegroupssumtotal_in_the_groups_header.htm
This is sample for SUM, but COUNT is same