Manual page count in group band

edited 11:38PM in FastReport 3.0
i'm using group band to set my own page number like this :

var
mypage : extended;


groupband1.afterprint:
begin
mypage := mypage + 1;
memo1.text := vartostr(mypage);
end;

now, how set pagecount for group so my grup pagecount like xx of xx

thanks

Comments

  • edited 11:38PM
    Hello sange,

    you must use a double pass report (Select Report | Options ... General , Double Pass). In the code you can use:
    if Engine.FinalPass then ...
    

    to check, that you are in the second pass.

Leave a Comment