Altrev
28th April 2015, 02:54
Hi,

We moved from HP-UX to IBM AIX several months ago, we identify all mayor processes during the migration but one process that is rarely used was not tested.

The process is Printing labels directly from baan to an HP Printer hplj4, now the user requires to print some labels and they does not work as supposed to.

To Print these labes I used some User Fonts that worked perfectly in HP-UX but in IBM_AIX are no longer recognized.

Example:

#******************************************************************************
pfont1=\E(s0p10h0s0b4099T\E&k11.6H,
pfont2=\E(s0p10h0s0b4102T\E&k11.6H,
#Arial
pfont3=\E(s1p10v0s0b16602T,
pfont4=\E(s1p15v0s0b16602T,
pfont5=\E(s1p20v0s0b16602T,
pfont6=\E(s1p25v0s0b16602T,
pfont7=\E(s1p30v0s0b16602T,
pfont8=\E(s1p35v0s0b16602T,
pfont9=\E(s1p40v0s0b16602T,
#Clarendon Cond
pfont10=\E(s1p10v4s3b4140T,
pfont11=\E(s1p15v4s3b4140T,
pfont12=\E(s1p18v4s3b4140T,
pfont13=\E(s1p20v4s3b4140T,
pfont14=\E(s1p25v4s3b4140T,
pfont15=\E(s1p30v4s3b4140T,
pfont16=\E(s1p35v4s3b4140T,


Does anyone have an idea of why these User Fonts are no longer being recognized?:confused:

Thanks in advance for your help.

günther
30th April 2015, 14:31
Hi,

I'm on HP-UX, so I cannot say anything about AIX. But I've been playing with those Baan Printer Drivers for a while, so maybe I can give you a hint.

1. Create a file $BSE/lib/printinif/t/test with e.g. the following content:


#************************************************************
# Booleans
#************************************************************
#rsf_pbold,
#rsf_pobold,
#rsf_prev,
#rsf_porev,
#rsf_punder,
#rsf_pounder,

#************************************************************
# Setup
#************************************************************
initpr=(initpr),
resetpr=(resetpr),

#************************************************************
# Character Sizes
#******************************************************************************
large=(large),
middle=(middle),
small=(small),

#************************************************************
# Line Drawing Chars
#************************************************************
pctl=(pctl),
pctr=(pctr),
pcbl=(pcbl),
pcbr=(pcbr),
put=(put),
prt=(prt),
plt=(plt),
pdt=(pdt),
phb=(phb),
pvb=(pvb),
pkr=(pkr),

#************************************************************
# Print Features
#************************************************************
pbold=(pbold),
pobold=(pobold),
punder=(punder),
pounder=(pounder),
pitalic=(pitalic),
poitalic=(poitalic),
landscape=(landscape),
portrait=(portraiit),
bin1=(bin1),
bin2=(bin2),
bin3=(bin3),
bin4=(bin4),
hpos=([%i]hpos[%p1][%dC]),
psubscript=(psubscript),
posubscript=(posubscript),
psuperscript=(psuperscript),
posuperscript=(posuperscript),

#************************************************************
# Character Sets
#************************************************************
set0=(set0),
set1=(set1),
set2=(set2),

#************************************************************
# NLS Table
#************************************************************
nls_out=hp_pc850.out,

#************************************************************
# Colors
#************************************************************
p_black=(p_black),
p_red=(p_red),
p_green=(p_green),
p_yellow=(p_yellow),
p_blue=(p_blue),
p_magenta=(p_magenta),
p_cyan=(p_cyan),
p_white=(p_white),

#************************************************************
# Fonts
#************************************************************
pfont1=(pfont1),
pfont2=(pfont2),
pfont3=(pfont3),
pfont4=(pfont4),
pfont5=(pfont5),
pfont6=(pfont6),
pfont7=(pfont7),
pfont8=(pfont8),
pfont9=(pfont9),
pfont10=(pfont10),
pfont11=(pfont11),
pfont12=(pfont12),
pfont13=(pfont13),

#************************************************************
# Barcode Directory
#************************************************************
barcode_dir=hplj4,

#************************************************************
# User Defined
#************************************************************
usr1=(usr1),
usr2=(usr2),
usr3=(usr3),
usr4=(usr4),
usr5=(usr5),


2. Create a Baan device that uses this driver i.e. "test" where you normally find hplj4 and eg. "cp %s /tmp/test.txt" where you normally find "/usr/bin/lp ...".

3. When you print something you should see, what parts should get to your printer.

Hope that won't confuse you too much!

Regards
günther