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

Calculate/Show only the first page when previewing...

edited September 2005 in General
RB Pro 7
Delphi 7 Pro

Hi!

Is it possible to calculate/show only the first page when previewing the
report?
The problem is that, if the database is very large, and the report is very
complex, it takes about 30 seconds to show it (on a ppViewer).

Is it possible to make it go faster? Maybe limiting the report to 1 or 2
pages when previewing, and show all when printing to printer?

Thanks a lot!

Comments

  • edited September 2005
    Hi Santy,

    1. If you set you report as a OnePass report, only the pages requested will
    be generated.

    2. Try using the Report.BeforePrint event to check the DeviceType property
    and set the Report.PageLimit accordingly. (Note: Setting the PageLimit to
    "0" will print the entire report).

    --
    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.