ken bohnenkamp
23rd August 2016, 22:17
If I simply print a baan report to a baan print device that has multiple trays, how does baan pick which tray to pull from. What is the baan default for the tray and is it possible to have the baan report print to tray 1 or tray 2 ? Any help would be appreciated.

bdittmar
23rd August 2016, 23:08
If I simply print a baan report to a baan print device that has multiple trays, how does baan pick which tray to pull from. What is the baan default for the tray and is it possible to have the baan report print to tray 1 or tray 2 ? Any help would be appreciated.

Hello,

define a printer driver for TRAY1 and TRAY2 in $BSE/lib/printing/......
And choose that printer.

hpljtray1 , hpljtray2 ......

For example TRAY 1 HP PCL Printer:

PAPER SOURCE COMMAND
The Paper Source command designates the location to feed paper, or
it prints the current page.
? & l # H
# = 0 - Print the current page
(paper source remains unchanged).
1 - Feed paper from the a printer-specific tray.
2 - Feed paper from manual input.
3 - Feed envelope from manual input.
4 - Feed paper from lower tray.
5 - Feed from optional paper source.
6 - Feed envelope from optional envelope. feeder1
1 Must be used in conjunction with Page Size command, envelope selection.
Default = Printer Dependent (Configurable from Control Panel)
Range = Printer Dependentsnipet from printer driver;
............
# Setup
#******************************************************************************
# |-<- Tray1 1 (manuell)
initpr=\EE\E&l26a66F\E(12U\E(s10H\E&l2H\E(s0p10h0s0b4099T\E&k11.6H\E%1A,
resetpr=\E(s10H\E&l5H\E(s0p10h0s0b4099T\E&k11.6H,

#******************************************************************************
# Character Sizes
#******************************************************************************
large=\E(s0p10h4099T\E&k11.6H,
middle=\E(s0p12h4099T,

Regards

günther
24th August 2016, 07:49
Hi.

I would like to add one hint to Bernd's tipp. If you just copy a printer driver to the next one, it might become hard to understand or maintain after some time.

I found a way to manage it in a better way, e.g.

#****************************************************************************
# The Explanation part ...
#****************************************************************************

#****************************************************************************
# Includes
#****************************************************************************
include=hp_lj4,

#****************************************************************************
# Tray Selection: setup bin<x>, initpr and resetpr
#****************************************************************************

# just as an example ...
bin1=\E&l4H,
bin1=\E&l4H,
bin2=\E&l1H,
bin3=\E&l5H,

initpr=...,
resetpr=...,

Regards,
Günther

mark_h
24th August 2016, 14:24
All this time and just learned something new about the print drivers. Your way would have been much better if we new it 15/16 years ago Gunther. You are right we have like 2 or 3 we have to maintain if we make a simple change. This way would have been much better.