Home Subreports

printing a report with subreports using ArchiveReader

edited January 2003 in Subreports
Hi,

I use Delphi6, Rbuilder 6.

I have create a report containing one subreport. When I generate the report
I am able to print the report and the subreport to different printers.
But when I store the the report in an archive file and try to print it later
use ArchiveReader I am not able to use different printers for the report and
the subreport. It is all printer on the same printer using the same output
bin.

A part (the main report) of the report must be printed on blank paper and
the subreport on letter headed paper.

How can I solve this.

Please advice.

Tnanks
Andre

Comments

  • edited January 2003
    The archive reader only supports printing to one printer. The archive reader
    reads the first page and uses the pritner setup from that page. Then if the
    printer setup is changed in the OnInitializePrinterSetup event, then the
    printer setup on the page object is updated with the printer setup. The
    byproduct is that the archive reader doesn't know if the pritner setup on
    the page object is different because it is streamed down differently, or if
    it was changed in the OnInitializePrinterSetup event. By default if it is
    different, then it forces it to use the archive reader's printer setup (the
    first page's printer setup or the one assigned in the
    OnInitializePrinterSetup event). I'll add this on our To-Do list to make it
    use the individual page object's printer setup if each page is streamed down
    with a different setup.

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2003
    Thanks Jim, for your reply.
    That will do for now, I hope you can implement this in one of the next
    versions.

    Brdgs
    Andre

This discussion has been closed.