Manual page count in group band

edited 1:14PM 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 1:14PM
    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

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.