CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Page Numbers

  1. #1
    Join Date
    Jan 2008
    Posts
    7

    Page Numbers

    Hi, I have a report in Crystal that is used more or less to print invoices for clients.
    The report will gather all of the invoices that need to be printed, and it will group them by client.
    Say I run the report and it generates invoices for 8 clients. 6 of the clients have 1 page invoices, and 2 of the clients have 2 page invoices. So it will basically return 10 pages of invoices for these 8 clients.

    What I really need help with is figuring out how to print appropriate page numbers at the bottom of the invoices. For 6 of the clients, it should print "Page 1 of 1" and for the other 2 clients it will print "Page 1 of 2" and "Page 2 of 2" where appropriate.

    For my reports in the past I've always used the Special Fields - Page N of M, but obviously that won't work here because they would all print Page 1 of 10, Page 2 of 10, etc.

    Any help you guys can give would be greatly appreciated!
    Thanks,
    Jess

  2. #2
    Join Date
    May 2007
    Posts
    17

    Re: Page Numbers

    i think you can use a record count using a running total and reset on change of client

    that way it will count how many pages of invoices you have for each customer...then print that at the bottom of the page?

  3. #3
    Join Date
    May 2006
    Posts
    324

    Re: Page Numbers

    Use the 'Reset Page Number After' box in the section expert, e.g. in the client group footer.

  4. #4
    Join Date
    Jan 2008
    Posts
    7

    Re: Page Numbers

    Thanks for the replies.
    Yes, I had to check the "Reset Page Number After" box like you mentioned and it worked perfectly! I can't believe I've never noticed that box before!
    Thanks again!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured