smallboy
22nd July 2004, 12:57
Hi to all,
this is probably an lp question than a Baan question but anyway...
I need to print from baan on an HP lj8000 (set as Direct in Baan) using paper in A3 format.
I don't know how to force the printer to use A3 paper. I suppose there is
a lp option but I can not find it. Any idea?
The OS is AIX 5.1

Thank you for your help!

smallboy

bdittmar
22nd July 2004, 14:18
Hello smallboy

create a printer driver with A3 ESC-Sequence in $BSE/lib/printinf/.....

Asign this driver to the BaaN Printer (e.g. hllj8x_a3) with paper size "A3" and direct it to the lp - queue

Drucker : ENTWA3
Bezeichnung : Entwicklung Schacht A3
Druckerart : Direkt
Locale : ISO-8859-1 Western Europe - 8 bit
--Drucker ------------------------------------
Treiber : lu_lj4mv_a3
Warteschlange : /usr/bin/lp -dlj51dtn1 -n %d -s %s
Papierart : A3 A3 format Hochforma
Linker Rand : 0 Seitenvorschub : Nein
--- Datei ------------------------------------
Treiber :
Shell-Befehl :
Konv.programm :
Argument :
Pfad :
Ändern zulässig :
Seitenlänge : 0


# Druckertreiber fuer A3 Kassette als Papierfach
# Bernd Dittmar (C) 2001
#******************************************************************************
# Booleans
#******************************************************************************
rsf_pbold,
rsf_pobold,

#******************************************************************************
# Setup
#******************************************************************************
# |-<- Schacht 2
#Papierquelle: 1=Papierfach; 5=500Blattkassette(Optional)
initpr=\EE\E&l26a66F\E(12U\E(s10H\E&l1H\E&l27A\E(s0p10h0s0b4099T\E&k11.6H,
resetpr=\E(s10H\E&l5H\E(s0p10h0s0b4099T\E&k11.6H,

smallboy
22nd July 2004, 15:45
Hi bdittmar,
first of all thanks for your help! I've tried your solution; I've created a file
hp_lj8x_a3 with the ESC sequence you give me, assigned the new driver to a baan printer and set paper to A3, but when I print on this printer it uses A4 paper instead of A3.... :-(
Any idea? Are there any other infos I can give you for solve the problem?

By the way a couple of questions: the esc-sequences are standard or differs form printer to printer? Where can be found?

Thank you again !

smallboy

bdittmar
22nd July 2004, 16:06
Hallo smallboy,

the esc-sequence depends of the printers hardware.

chose the right paper tray with esc-seq.

You'll find in printers documentation for lj8x in appendix D

papertray:

Ec&l#H

where the value for # is.

0 actual page
1 tray 2
2 manual feed for paper
3 manual feed for envelope
4 tray 1
5 tray 3
6 envelopes
7 autom. feed
20 tray 4
21 tray 5
22 - 69 external trays

so if your A3 paper is in tray 3 change the esc-squence to :

Ec&l5H

! also take care on paper orientation and other

attached you'll find some pcl examples (in german) for the lj8x

regards bernd

smallboy
22nd July 2004, 16:16
Hi bdittmar,
it works!!!!!! Thank you! your first post was ok but I've mispelled the esc-sequence ( an l that was 1)... I feel like Homer Simpson Doh!
Thank you again also for the pdf!

smallboy

smallboy
23rd July 2004, 11:29
I hope not be off topic... again about escape-sequence:
is it possible to use it on a lp command line, i mean sometings like this

lp -d<printer_queue> <escape_sequence_for_a3> <file_to_print>

or

<escape_sequence_for_a3> <file_to_print> | lp -d<printer_queue>

Thank you

smallboy

bdittmar
23rd July 2004, 17:06
I hope not be off topic... again about escape-sequence:
is it possible to use it on a lp command line, i mean sometings like this

lp -d<printer_queue> <escape_sequence_for_a3> <file_to_print>

or

<escape_sequence_for_a3> <file_to_print> | lp -d<printer_queue>

Thank you

smallboy

I've never seen this.
The LP puts the output to the printer (Modelcript).
BaaN takes it's own printerdriver, located in $BSE/lib/printinf/....

regards bdittmar