baancust
16th October 2008, 07:43
Hi All,
We have following setup :
baan IVc4 sp 18 with lot of customisation.
Porting set 6.1c.07.08
Operating system HP UX11.11
Informix 7.31.FC6X5
We are planning to upgrade our porting set from 7.08 to 7.20.
I want to know is there any issue with my existing setup with database and operating system. What points are to be considered while doing the same. Will upgrading the porting set affect the printers.
günther
16th October 2008, 09:12
Hi,
we recently made a major step (hardware, o/s, db and porting set on one day). But we encountered only one problem: barcode printing. There has been a change in porting set 7.15, so I had to tweak the $BSE/lib/barcode/type... script.
Günther
mark_h
22nd October 2008, 18:58
How did you have to modify the type script? We did SP a few weeks ago and I just found out today there is an issue with barcodes. Just curious what you fixed to see if it would help me.
Thanks
mark_h
23rd October 2008, 00:58
Never mind - figured it out. Baan was appending a space the value that was sent into the script I added a line like code=`echo $code | tr -d " "` to strip that space out. Well at least one more problem from this SP upgrade has been solved.
mig28mx
23rd October 2008, 02:15
Hello,
When you upgrade, be sure you have the last version of I-connect.
If no, the PS upgrade will not work.
Regards.
Chris Kiehl
24th October 2008, 16:57
I added a line like code=`echo $code | tr -d " "` to strip that space out.
Hello,
Where, specifically, do we place this expression in the file?
We recently changed our porting set as well and are having the same problem with our type39 file:
#!/bin/sh
#
# Barcode driver for HP LJ4 printers supporting Code 39.
#
# The Triton path and filename is $BSE/lib/barcode/hp_barcode/type21
#
# The orientation of the barcode horizontal.
#
# All this is based on the sample driver of Baan International B.V.,
# Mr. Lehmann, BaaN International, Hannover
#
# barcode-characters, completed by Code39 start and stop characters
# space turn to _
#code="*$1*"
#echo "`date`: $*" >> /tmp/type39.log
strlen=`echo "*$1*" |awk '{ printf "%d", length }'`
i=1
code=""
while [ $i -le ${strlen} ]
do
teilstr=`echo "*$1*" | cut -c $i-$i`
if [ "${teilstr}" = " " ]; then
teilstr="_"
fi
code="${code}${teilstr}"
i=`expr $i + 1`
done
# height eq. '2' for a single execution of the 'while'-loop
# 'height' is usually set by the calling programm
height='4'
Push()
{
# push cursor position (max 20x)
echo "\033&f0S\c"
}
Pop()
{
# pop cursor position
echo "\033&f1S\c"
}
NextRow()
{
# move to next row, relative
echo "\033&a+1R\c"
}
# - save cursor position - filter assumes same pos. after barcode print
Push
# - select Code 39 font
# echo "\033(0Y\033(s0p8.1h12v0s0b0T"
echo "\033(9Y\033(s1p32v0s0b24670T"
# print barcode for height - 1 times
while [ $height -gt 1 ]
do
Push
echo "$code\c"
Pop
NextRow
height=`expr $height - 1`
done
# - select Courier 12cpi.
echo "\033(10U\033(s0p12.00h10.0v0s0b3T\c"
# - restore cursor position for filter
Pop
exit 0
Thanks in advance,
-Chris-
freebie82
20th May 2009, 18:24
#!/bin/sh
#
# Barcode driver for HP LJ4 printers supporting Code 39.
#
# The Triton path and filename is $BSE/lib/barcode/hp_barcode/type21
#
# The orientation of the barcode horizontal.
#
# All this is based on the sample driver of Baan International B.V.,
# Mr. Lehmann, BaaN International, Hannover
#
# barcode-characters, completed by Code39 start and stop characters
# space turn to _
#code="*$1*"
#echo "`date`: $*" >> /tmp/type39.log
strlen=`echo "*$1*" |awk '{ printf "%d", length }'`
i=1
code=""
while [ $i -le ${strlen} ]
do
teilstr=`echo "*$1*" | cut -c $i-$i`
if [ "${teilstr}" = " " ]; then
teilstr="_"
fi
code="${code}${teilstr}"
i=`expr $i + 1`
done
# height eq. '2' for a single execution of the 'while'-loop
# 'height' is usually set by the calling programm
height='4'
Push()
{
# push cursor position (max 20x)
echo "\033&f0S\c"
}
Pop()
{
# pop cursor position
echo "\033&f1S\c"
}
NextRow()
{
# move to next row, relative
echo "\033&a+1R\c"
}
# - save cursor position - filter assumes same pos. after barcode print
Push
# - select Code 39 font
# echo "\033(0Y\033(s0p8.1h12v0s0b0T"
echo "\033(9Y\033(s1p32v0s0b24670T"
# print barcode for height - 1 times
while [ $height -gt 1 ]
do
Push
#echo "$code\c" (commented out)
echo "$code\c" | tr -d " " (new piece)
Pop
NextRow
height=`expr $height - 1`
done
# - select Courier 12cpi.
echo "\033(10U\033(s0p12.00h10.0v0s0b3T\c"
# - restore cursor position for filter
Pop
exit 0