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

PaperBins ignored when printing from archive file

edited July 2006 in General
Hi,

When I load a previously generated RAF file into a TppArchiveReader
component and print it, all settings for Printersetup.BinName are
ignored. I want to change the bins between different pages in my report
(empty main report with 3 subreports each for a different bin)

When I print the report directly every thinks works as
expected (TppReport.Print).
I converted the binary raf file to a text representation.
All settings in the embedded TppPages.Printersetup objects are
correct (3 Pages with 3 different Printersetup settings).

The selected printer is in both cases the same.

Any ideas?

Thanks in advance
Frank

Comments

  • edited July 2006
    I forgot:

    We are using Delphi 6 and RB 7.04 Enterprise Edition.

    Thanks
    Frank
  • edited July 2006
    Hi Frank,

    There is no event currently available on the Archive Reader allowing you to
    change the printer settings for each page. This is something we will
    consider adding for a later release of ReportBuilder. As a work-around you
    can access the Device.OnPageReceive event to gain access to the TppPage
    object and alter the printer setup from there. Below is an example that
    shows how this can be done.

    http://www.digital-metaphors.com/tips/ChangePrinterBinArchive.zip

    --
    Regards,

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

    Best Regards,

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

    thanks for your solution. It works for me.
    In the meantime I found an equivalent solution
    which also works well:

    1) create a TppPrinterDevice in code

    2) call TppPrinterDevice.StartJob

    3) extract every single TppPage-Objekt from the
    RAF file

    4) call TppPrinterDevice.ReceivePage(aPage) for every
    extracted page

    5) call TppPrinterDevice.EndJob

    Regards
    Frank
  • edited July 2006
    Hi Frank,

    Excellent, glad you got it working.

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