numbering for every document

edited 6:00PM 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 6:00PM
    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 6:00PM
    gpi wrote: »
    gpi 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.


    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 6:00PM
    See test project in attach
  • edited 6:00PM
    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 6:00PM
    See FRDemo "What's new in FastReport 4" section "Reset page numbers" report
  • edited 6:00PM
    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 6:00PM
    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

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.