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

Question regarding printing from preview

edited October 2001 in General
Is it possible to have the report image saved when doing the preview so that
if a user asks for a print directly from preview it does not have to
recreate the report. This is important when a summary report is printed on
large amounts of data.

It is also important as i use some report variables in rap code which do not
get reset properly and hence all my numbers can get duplicated.

Regards Tony Wood
Turnkey Computer Technology Ltd
Glasgow

Comments

  • edited October 2001
    > Is it possible to have the report image saved when doing the preview so
    that
    on


    You could print to an archive format and then preview that, and/or send it
    to the printer. There will be a larger time though.

    HTH,
    Ed Dressel
    Team DM
  • edited October 2001
    Most of the other report writers i have used cache the results of the report
    when previewing so that it does not need to recalculate everything if the
    user asks for a print.

    I have been caught out recently when creating reports with normal variables
    calculated at runtime, when the report is either printed from preview or the
    user scans through pages back and forth the variables are continually
    updating.

    Surely caching of the pages would be a good option to add to report bbuilder
    if it is not already there.

    Tony


  • edited October 2001
    There is a Report.CachePages property, which will cause the pages to be
    cached from the preview, so that the pages will not be regenerated when the
    report is subsequently sent to the printer.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited October 2001
    This does not seem to be working as you say.

    I have a simple report that previews and if you hit the ssend to printer
    button it is definitley regenrating the pages regardless of the cache pages
    setting.

    Have you got an example you could send me?

    Thanks Tony


  • edited October 2001
    Is the Report.PassSetting set to psOnePass? If the pages aren't previewed
    in the viewer, they they aren't generated. You should set the PassSetting
    to psTwopass and the report will generate all of the pages in the first pass
    when the previewer shows the first page. The second pass happens as the
    previewer scrolls through the pages or they are sent to the printer. All of
    the pages that are previewed in the second pass will be cached and sent
    directly to the printer and should not be regenerated.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.