Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Processing the last page

edited March 2006 in General
Hello

How do I know if I am processing the last page of my report?

I know there is a OnPageStart event but there is no property I can see for
the last page number

Cheers

Paul

Comments

  • edited March 2006
    Hi Paul,

    If you create a two pass report, you can compare the Report.AbsolutePageNo
    to the Report.AbsolutePageCount to determine whether you are on the last
    page or not.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2006
    Thanks Nico

    Are TwoPass reports slower/less efficient? What is the best practice when
    deciding the passsettings for a report?

    Cheers

    Paul

  • edited March 2006
    > Are TwoPass reports slower/less efficient?

    yes.


    AFAIK the report won't know if it's on the last page if it's not a 2 pass
    report on the 2nd pass.

    Ed Dressel
    Team DM
  • edited March 2006
    This still doesnt work

    My report is a report with a sub report in it.

    The sub report can take up more than 1 page. When I I set the subreport to
    a 2 pass report the absolute page no is always 0?

  • edited March 2006
    Hi Paul,

    1. Be sure you are using the AbsolutePageCount and AbsolutePageNo
    properties of the main report object to find the page count for the entire
    report.

    2. Are you loading templates? If so, you need to be sure you save them
    down as TwoPass reports or the PassSetting property will be ignored and the
    page count will always return 0.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.