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

Report printer setup in runtime

edited April 2003 in General
Hey,

how I can changing the printer setup (tray 2 to tray 3) before printing a
subreport and after print the subreport from tray3 to tray2 .

example code:
the subreport is in a group footer.
in BeforePrint: Report.PrinterSetup.Binname := 'Tray 3';

in Afterprint: Report.PrinterSetup.Binname := 'Tray 2';

but all sites of the report come from tray 2.

Can you help me?

Best regards

Dirk

Comments

  • edited April 2003
    My subreport is in a footer of a group. Is this a problem?


  • edited April 2003
    Dirk,

    Try using Report.OnEndPage event rather than Report.BeforePrint or
    Report.AfterPrint
    events. This should fire early enough to change the BinName before the
    report is generated.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2003
    Hey Nico,

    My problem is the following:
    For an entire report I can specify without problems binname to the run time.
    But I must specify to the run time that subreports are pulled because of
    different forms from different bins. But all the same with which event the
    attitude always applies to the entire report.
    Also different attitudes under the menu Page Setup do not furnish in
    subreports change anything in it.
    Under the newsgroup tech-tips I found the Contribution Selecting Paper Bins
    for Each Page, but this also not functioned by me.


    Please help me.

    Thanks

    Dirk
  • edited April 2003
    Dirk,

    Below is a link to an example showing how to change the printer bin based on
    certian restrictions. This should help get you on the right track.

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

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.