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

Goto last page of Preview (by code)

edited August 2009 in General
Hi all,

When I open the report (using Enterprise v7.03) in Preview mode I want
to goto the last page and display it (similar to pressing the 'Last
Page' button) without the user doing anything. Is there a way to do
this?

Presently I am just using
MyReport.Print
to open the report in Preview.

Also, I may need to open the report, goto the last page and then
comeback to the first page and display that (all done without the user
doing anything). Can I do that also?

Reason I am doing this is to get the report Totals from the last page.
Is it possible to run the report just to get the Totals from the last
page (and not show anything to the user, say, except for the
hourglass)?

Thanks for any ideas.

Regards,
Pat

Comments

  • edited August 2009
    Hi Pat,


    Try using a LookAhead variable or DBText to calculate a value that resides
    on the last page. This will automatically configure your report to run as
    Two Pass meaning all pagination and calculations will be made once before
    the report is shown.

    To create a look ahead component, simply set the LookAhead property to True.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2009
    Hi Nico,


    Excellent! that fixed me up. Thanks

    Pat
This discussion has been closed.