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

Paper Bin Switching

edited July 2002 in General
Delphi 5, RBPro 6.03.

I've a report to finish with subreports that need to direct different pages
to different printer trays, regardless of paper size, using report builder
events, or whatever would work

So far, I have not had success with setting PrinterSetup.BinName at all.

Thanks in advance.

Comments

  • edited July 2002
    You've followed the Tech Tip newsgroup article: Selecting Paper Bins for
    Each Page?


    Cheers,

    Jim Bennett
    Digital Metaphors Corp.

  • edited July 2002
    Yes, I have..and have followed it's example for the most part.

    What I am printing is on a preprinted form. Detail information may or may
    not be printed on the same page. If not, it needs to be directed to another
    bin.

    I've two subreports in the detail band. Only one will be active. One prints
    the detail on the same page, the other is a section style set to print to a
    different bin. Originally, these were all set in the Object Inspector. No
    joy, so I set them in the sub report.OnPrint. Still, all pages get drawn
    from the top tray.

    Tray 1 contains preprinted forms. Tray 2 contains standard Letter paper.

  • edited July 2002
    Try using the main report's OnEndPage event to set the
    ppReport1.Engine.Page.PrinterSetup.BinName. Set a boolean flag variable
    when you determine which subreport to print and you can use this information
    in the OnEndPage because the OnEndPage is the last event to fire before the
    page is sent to the output device.


    Cheers,

    Jim Bennett
    Digital Metaphors Corp.

This discussion has been closed.