Best place to use PageCount, in page header, footer, or not at all?

Posted by: softcomlimited on 9 August 2019, 5:07 pm EST

    • Post Options:
    • Link

    Posted 9 August 2019, 5:07 pm EST

    In a Section Report, I see the documentation says Page {PageNumber} of {PageCount} has a toll on performance. How much of an impact is it? Where is the best place to use PageCount, in the page header, footer, or not at all ?

    Thanks

    Brian Morris

  • Posted 12 August 2019, 1:34 am EST

    Hello,

    When you place the PageCount in Report header/PageHeader, it will impact the performance. I will suggest you to use “PageCount” in the PageFooter so that performance will not affect.

    How much of an impact is it?

    Sorry to mention that currently, we don’t have any statistical data to judge the performance difference.

    Thanks.

  • Posted 13 August 2019, 1:31 am EST

    PageFooter has a much lower impact? Interesting, I’m tempted to ask what is the difference between the top of the page and the bottom but I will take your work for it. OK, for big reports that’s where it will go. Thanks

    Brian Morris

  • Posted 14 August 2019, 3:54 am EST

    Hello,

    Height of each section is count in Format event of section. The sequence to of firing of Format event of PageHeader, PageFooter, Detail section as below:

    PageHeader_Format> Detail_Format> PageFooter_Format

    If you add the page count/total in Page Header then ActiveReports must determine the total or page count of the sections before it can render the header section which slows the process.

    If you add the page count/total in Pag Footer then the height of other section is already calculated in other section which helps in increasing performance as compared to when you add the page count in the header section.

    Hope it clarifies.

    Thanks.

Need extra support?

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

Learn More

Forum Channels