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

Leave a Comment