halvorn
25th February 2002, 11:17
Hi,
Is it a "easy" solution for printing Barcodes without any hardware/cartridge/simms.

I have read the Quick guides and the earlier postings related to Barcodes, but I did not "pick up" any clear answers to my question.

Best regards
Halvor

norwim
25th February 2002, 11:59
Hi there,

actually it's quite simple.
Find the printer driver ($BSE/lib/printinf/h/xxxxx)
[h should be the directory name as it is a HP printer, xxxxx the name of the driver]
if it is not already there, add the line
barcode_dir=nnnn at the end of the file, before the line
# User Defined
nnnn is the name of a directory located under $BSE/lib/barcode
Let's say you want this directory be called "hp"
so you create a directory $BSE/lib/barcode/hp
make sure that the owner is bsp and that bsp can access this dir
Now you place a file called "type01" in this directory. (I will attach a sample file)
Now you edit this file and place the correct leadin and leadout in the line "echo "hdhdhdhdhd"$code at the bottom of the file.
Now you can use "User defined type/barcode type01" in your report.
Hth
Norbert

halvorn
25th February 2002, 14:30
Hi,
Thanks for answering.
I had done this, but used the type01 from Baan which was made for HP4. I tried your example and called it type02 and refered to it in the Report field.
For both type01 and type02 no Barcode is printed. If I send it to "D" (Display) I can see "#& in front of the "Prod order number" that is defined with barcode in the report.

There are no errrors in the log.filter6.1 file.

You wrote:
Now you edit this file and place the correct leadin and leadout in the line "echo "hdhdhdhdhd"$code at the bottom of the file.

I have not changed this lines in your sample or in the file from Baan. Maybe this line is wrong according to the HP 5 laserjet?

norwim
25th February 2002, 15:29
Hi halvorn,

this might indeed be the case.
What I usually do to find out the right init-sequence is
1) get a manual for the printer in question
2) choose one of the example sequences usually provided there
3) edit a plain unix file and enter the sequence plus a number to be printed in barcode
4) directly send this file to the printer
loop through 2 to 4 until barcode is printed
Then put this sequence into the typexx file

Keep on truckin' !

regards

Norbert