Home Devices

Combining print jobs using different bins

edited October 2004 in Devices
Hi,

I am trying to combine two reports into a single print job, using a
TppPrinterDevice as shown in demo 123.

The two reports are each a single page report, and using the same data
pipeline, but printed from different trays: Report1 is a 8.5x11 label in
tray 2, and Report2 is a 8.5x11 blank paper in tray 1. Tray 1 is the default
printer tray, both in the Windows printer driver and on the printer itself.

(1) If both reports have their PrinterName and BinName specified in their
PrinterSetup, it works. (2) But if the second report has BinName='Default',
it doesn't print on the printer default tray, but in the same tray as the
first report. (3) It works if I reverse reports, so it seems that the
'Default' bin works at the beginning of a print job, but not once a bin has
been specified.

(1)
Report1.PrinterSetup.BinName := 'Tray 2' > OK
Report2.PrinterSetup.BinName := 'Tray 1' > OK

(2)
Report1.PrinterSetup.BinName := 'Tray 2' > OK
Report2.PrinterSetup.BinName := 'Default' > WRONG TRAY, goes to tray 2

(3)
Report2.PrinterSetup.BinName := 'Default' > OK, prints to tray 1
Report1.PrinterSetup.BinName := 'Tray 2' > OK


Another problem:
I tried using the TppPrinter.DefaultBinName as a workaround, but it always
gave me an empty string. The Printer.DefaultBin was 15 and there were only
11 strings in PrinterSetup.BinNames.


Do you have a fix or a workaround of using 'Default' in BinName or using the
DefaultBinName property?


I'm using RBpro 6.03 with Delphi5 sp1.

Thanks,
Jocelyn.

Comments

  • edited October 2004

    Support for the Default bin is not very well supported by printer drivers,
    but RB does its best to try to support it.

    1. Try downloading a trial version of RB 7 and perform the same test. I
    think support for the default bin has been improved for RB 7.

    2. Try downloading and installing the latest printer driver.





    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.