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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.