numbering for every document

edited 8:08AM in FastReport 4.0
When I print only one long document, a have page numbering like
1/2
2/2

That's ok.

But, when print two or more documents, then page numbering is like

1/4
2/4
3/4
4/4

I want numbering for every document, like:
1/2
2/2
1/2
2/2

How to do this ?

Comments

  • gpigpi
    edited 8:08AM
    wrote:
    1.9.1 Numbering of pages in a composite report
    You can use the ?«Page,?» ?«Page#,?» ?«TotalPages,?» and ?«TotalPages#?» system
    variables for displaying a page number or a total number of pages. In composite reports,
    these variables work in the following way:
    Page ??? page number in the current report
    Page# - page number in the batch
    TotalPages ??? total number of pages in the current report (a report must be a two-pass one)
    TotalPages# - total number of pages in a batch.
  • edited 8:08AM
    gpi wrote: »


    I did try Page and Page# variables and effect was always the same.
    For two reports always shows
    1/4
    2/4
    3/4
    4/4

    instead of
    1/2
    2/2
    1/2
    2/2
  • gpigpi
    edited 8:08AM
    See test project in attach
  • edited 8:08AM
    The sample works ok, but it is not answer for my problem.

    Try use one fr3 file to print few records from database. For every record numbering should start from one!
  • gpigpi
    edited 8:08AM
    See FRDemo "What's new in FastReport 4" section "Reset page numbers" report
  • edited 8:08AM
    OK, I did try FRDemo "What's new in FastReport 4" section
    To my fr3 file I added GroupHeader band (group by every record) and set "Reset page numbers" on true;


    But It doesn't works.
    I still have pages 1/4 instead of 1/2 and 1/2
  • edited 8:08AM
    OK, I got it. On GroupHeader band have to set "reset page number" and "start from new page"
    Now it's works.

Leave a Comment