Number of pages per group

Posted by: jon.herrero on 11 December 2017, 2:03 pm EST

    • Post Options:
    • Link

    Posted 11 December 2017, 2:03 pm EST

    Hi

    i want to print several delivery notes. I’ve created a group (IdAlbaran) to separate each delivery note. But i want to add a calculated field to indicate how much pages are in each group.

    i’ve tried with grouppages(IdAlbaran) on Idalbaran_Footer Onformat but i always have 1 as result (including those notes with more tan one page). My questions are:

    • How it Works grouppages()? It’s for counting pages? or whats is its function?

    • How can i calculate the number of pages per group?

    thanks in advance

  • Posted 12 December 2017, 12:02 am EST

    Hello Jon,

    To display page numbers with respect to groups, you may use GroupPage and GroupPages methods.

    • You may use these in a Calculated field placed inside a GroupHeader/GroupFooter.

      GroupPage and GroupPages return the current page number within a group and the total page count for a group, respectively.

    -You can use these in the Text property of a field as, say, ="Page " & GroupPage() & " of " & GroupPages()

    Refer the attached report for implementation.

    Let us know if you need further assistance.

    Best Regards,

    Esha

    Grouping_PageCount.zip

  • Posted 12 December 2017, 4:44 am EST

    I’ve reviewed your file and now it Works.

    Thanks Esha for your support

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels