FlexReport - Number of Pages per group

Posted by: c1 on 19 December 2019, 9:16 am EST

    • Post Options:
    • Link

    Posted 19 December 2019, 9:16 am EST

    Hello folks,

    i try to do something special with page-numbers.

    My report was printed in groups (customers) with ForcePageBreak=‘before’ each customer. I need to have pagenumber 1 on each first page into a group. I use vbscript for the groupheader.OnPrint event and set page=1. That works :-).

    But the variable ‘pages’ holds the number of pages of the whole report, not the number of pages per group. In order to print ‘Page 1 from 12’ i need a idea to get the number of pages for the current printed group. Is there any way to get this?

    Thanks in advance for any hint to solve this.

    Greetings Niels

  • Posted 20 December 2019, 2:40 am EST

    Hello Neils,

    You can use the GroupPage and GroupPages methods, as follows:

    ="Page " & GroupPage(0) & " of " & GroupPages(0) & " for " & Country
    
    

    Use of these methods has been shown in the attached report.

    https://www.grapecity.com/componentone/docs/win/online-flexreport/ResettingPageCounter.html

    Thanks,

    Esha

    Grouping_PageCount.zip

  • Posted 20 December 2019, 3:53 am EST

    Hello Esha,

    perfect !!!

    I move my textfield from pagefooter to the groupfooter and use the named methodes into the formula of the text-property. It works.

    Thanks for your great support.

    I wish you a merry christmas.

    Niels

  • Posted 20 December 2019, 4:21 am EST

    Hi Neils,

    Thank you for your kind words.

    Merry Christmas!

    -Esha

Need extra support?

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

Learn More

Forum Channels