How can I skip the first page of a report?
Hi,
Anybody know how I can do this? I tried to use de PageList with something
like 2..n, but I don't know when the report is OnePass. If I use 2..9999
(I have no report that large) doesn't work either, because it takes ages for
the 'Printing' to end (it seems that it tries to print every page-nr, even
when the end of the report is reached way before 9999 pages are printed).
Any help is much appreciated,
TIA,
Ronald
Anybody know how I can do this? I tried to use de PageList with something
like 2..n, but I don't know when the report is OnePass. If I use 2..9999
(I have no report that large) doesn't work either, because it takes ages for
the 'Printing' to end (it seems that it tries to print every page-nr, even
when the end of the report is reached way before 9999 pages are printed).
Any help is much appreciated,
TIA,
Ronald
This discussion has been closed.
Comments
Check out Demo 124 located in the \RBuilder\Demos\1. Reports\... directory.
This example shows how to send a specific list of pages to the printer.
This is the best way to accomplish this without altering the print dialog.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
The example you mentioned works with a PageList. But I don't know the number
of pages to print for a OnePass-report. Is there another way to skip the
first page (even if it means a change in the source)?
Ronald
Take a look at the ppPrnDev.pas file to see how ReportBuilder handles
sending pages to the printer device. Each page is send individually using
the ReceivePage procedure where it is then processed and outputed to the
printer canvas. The only way to control this process is to assign which
pages get sent to the ReceivePage procedure (as in the example I pointed you
toward). If you are looking to change the source, it will have to be done
in here.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I found another solution. I start printing the report with an psPagelist
setting (for example 2-99) and in the OnEndPage-event for the first page I
change the setting to psAll. It seems to be working fine.
Ronald
Glad you got it working.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com