Last page of report

edited August 2002 in Devices
I'm sure this is simple, but how can I tell if I'm on the last page of a
report?

mbd

Comments

  • edited August 2002
    Thanks Jim.

  • edited August 2002
    The only way to know is in the Report.OnEndPage event, after the last page
    has been generated. At that time you can check the
    Report.Engine.Page.LastPage property. If you want to change the report
    based on if it is the last page, then you need to use a two pass report
    (Report.PassSetting). Check the Report.AbsolutePageNo in the second pass to
    see if it equals Report.AbsolutePageCount. Then you know you are on the
    last page. There is a Report.SecondPass boolean property.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.