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

RBuilder 7.03, archive file and copies

edited October 2008 in General
Hi,

How to produce a report as an archive file (.raf) and set number of copies
for this report ?

Even I set PrinterSetup.Copies, this property is ignored when I print the
report to archive.

Thanks for yor help
--
Serge Chelli
www.aceinformatique.com
www.fastmag.fr

Comments

  • edited October 2008
    Hi Serge,

    You need to set the copies property inside the OnInitializePrinterSetup
    event of the archive reader. This will ensure the printer setup is applied
    to every page in the archive.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2008
    I have a similiar problem like this. If I print a report to an archive file
    and try to print with tppArchiveReader the bin settings of the the pages (i
    have different bin's in one report) are ignored.

    Example
    Page 1 - > default bin
    Page 2 -> same as Page 1
    Page 2 -> manuel feed.
    ... and so on.

    Due the fact that I don't know on which page I have to use which bin (this
    is only known in the report), I have no idea how to set the bin...

    Can you help?

    ReportBuilder 7.04 Enterprise (Still migrating to 10 ;-)

    ( I have seen a problem reported like this, but the the web based news on
    delphi.newswhat.com is (currently?) not available and the google cache is
    also not working :)

    Regards
    Sven



  • edited October 2008
    no hint ? :(


  • edited October 2008
    Hi Sven,

    Sorry I didn't see you post.

    How does the report know which page is sent to a certain bin? Where are you
    setting the bin when printing from the archive reader?

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2008
    Hi Nico,

    In the report I have subreports with own printer settings (NewPrintJob=true
    on a SubReport). I does not touch the printer settings because I had the
    hope that the archivereader is using the settings out of the original
    printed report.

    Greetings
    Sven



  • edited October 2008
    Hi Sven,

    An archive file is simply a snapshot of a printed report (similar to a PDF
    file). This means it just stores the generated drawcommands from each
    completed page but does not have any of the underlying generation or
    printing information that is kept with the actual Report object. For
    instance, an archive has no concept of a subreport.

    If you need to print certain pages to different bins from an archive, it
    will have to be done page by page.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2008
    Hi Nico,

    thanks for the help. Now I see the light and I will have to rewrite my
    concept..

    Greetings from germany

    Sven
  • edited October 2008
    Hi Sven,

    Sorry for the delay, upon further research the complete PrinterSetup is
    saved down with each TppPage object in an archive. It may be possible to
    access the TppPage's PrinterSetup object from the OnReadPage event. From
    here you could make a copy of the PrinterSetup tied to each page and assign
    it to the archive reader in the OnInitializePrinterSetup event.

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