Preview -> Print without data re-access
I see that choosing to print a report while in the previewer will re-access
the data and re-run the report itself. I was rather hoping it would just
print the cached pages. Is there a way to make it do the latter, so that
choosing to print from the preview page will just send those stored pages to
the printer? I don't want the report to change in any way from what is
shown in the preview.
the data and re-run the report itself. I was rather hoping it would just
print the cached pages. Is there a way to make it do the latter, so that
choosing to print from the preview page will just send those stored pages to
the printer? I don't want the report to change in any way from what is
shown in the preview.
This discussion has been closed.
Comments
Setting the Report.CachePages property to True should give you the
effect you are after.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
re-accesses the data when you switch printers. If you leave it set to the
default printer, it doesn't.
This is necessary due to the fact that different printers have different
capabilities. If the report is initially generated using a printer only
capable of 300 dpi, then you try to print to a printer capable of 2400
dpi, the measurements and output will be incorrect.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Is there any way to disable that behavior?
The problem is, when it reruns, it's not behaving properly with some RAP
code I have. Normally, the report will call a passthrough function in order
to determine some constraints. However, it looks like the string being
passed to the passthrough function has been set to the empty string, and the
function isn't working correctly. If the report is printed without going to
the preview screen first, it behaves correctly. And the preview correctly
calls the function. But printing from the preview does not.
You might consider printing to an archive file. This is a snapshot of a
generated report in file format. You can use the TppArchiveReader the
same way you would the report previewer only the pages are already
generated and the output will be static.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com