Reset page numbers doesn't work
I am using FR 4.3 and can't get the ResetPageNumbers property on a group header to work. I set that property and StartNewPage to true, but the page numbers (which are printed in the page footer) don't reset when the group changes. Is there a bug with this or am I missing something?
Glenn
Glenn
Comments
set('PageNum', 0);
Then in the PageFooter1OnBeforePrint event I increment it:
set('PageNum', get('PageNum') + 1);
This works fine but I still wonder why ResetPageNumbers doesn't work.
Glenn
Page [Page] of [TotalPages] in page footer
works fine
procedure GroupHeader1OnBeforePrint(Sender: TfrxComponent);
begin
Memo1.text := 'Page '+'[page]'+'/'+'[totalpages]' ;
end;
Enable the double pass in report's settings (the "Report|Options..." menu item.
With double pass disable, totalpages print 0 (zero).