pgrootenhuis
13th February 2004, 09:37
Hi,

I work with Baan IV on a SCO unix system. For printing I'm using printerfiles (like hp_lj4). I've got a HP LJ4100DTN. Printing with the hp_lj4 driver is okay, but now I want to print duplex.
Does anyone know the PCL escape sequence for duplex printing and where in the driverfile can I put that sequence ?

Greetz,

Peter.

CINOTTIL
13th February 2004, 15:12
Hi Peter,

the scape sequence are :
\E&l1S for Portrait
\E&l2S for Landscape

Yuo must insert the escape sequence in the "initpr" line.
For example :

initpr=\EE\E&l26a66F\E(12U\E(s10H\E&l5H\E(s0p10h0s0b4099T\E&k11.6H\E&l1S,

Bye,

pgrootenhuis
13th February 2004, 17:02
Thanks Cinottil,

The code should be okay I think, but when I put it in the initpr and run the session, I can choose the printer (in my case called 'LP70' (with the updated driver) But instead of printing, the following error occurs:

/usr/bin/lp -c -dlp70 -n1 -s/usr4/bse/tmp/tmp046874272

I don't know what that means. When I remove the escape code again from the driver, this error still occurs. I've checked the rights on the driver file, they're okay.:(

pgrootenhuis
13th February 2004, 17:04
P.S.; At the bottom of the error window also '(Error 1)' is shown...

P.

Markus Schmitz
14th February 2004, 15:22
Check the log file in $BSE/log.

If the printerdriver is not syntactically correct anymore, then you will find error entries in log.filter6.1

Markus