Calculate/Show only the first page when previewing...
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!
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!
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com