mgakhar
12th June 2003, 01:32
Hi,
Im trying to print barcodes from Baan using the Barcode field on Maintain report Fields as per the document QG1307.

No matter what value I set this field to (1,2, 9 etc) it doesnt print anything to the printer.

On checking the log file $BSE/log/log.filter6.1, it shows an error:
Barcode script '/am1t/naan4/bse/lib/barcode/hp_barcode/type09' not found or executable.

Obviously this file type09 is not present in our system. However, we do have type01 and type02. What values do I need to enter in the field Barcode so that it maps to type01 or type02 ?

Thanks,
MG.

mgakhar
13th June 2003, 01:08
Where have all the gurus gone ?? ;)

If there is any more info required of me please let me know.

MG.:confused:

NvanBeest
13th June 2003, 14:16
They're busy working? :D

ssbaan
13th June 2003, 15:47
I am not a BaaN Guru, but do have some experience with BaaN reports and Barcoding.

Try changing the field FONT / BARCODE, on the field definition screen for the barcode field, to blank (for font) and a 1 or 2 for the type of Barcode to print (since these are the only 2 types your currently have).

You could also copy the type01 or type02 to type09 and modify
it to meet you needs.


Hope this helps!

sbakshi
13th June 2003, 23:31
Hi,

Take a simple report....Say tiitm0401m000 (Print Item Data)
(1) Take the first report i.e. tiitm0401000, copy to your VRC
(2) In the layout, Add another DETAIL layout and insert a field called say item.barcode with tc.item as domain
(3) Save Exit
(4) Open the REPORT script, add in the declaration section
domain tcitem item.barcode
and add the below:

detail.5:
before.layout:
item.barcode = chr$(27) & chr$(22) & "*#0" & tiitm001.item |Working *-code 128, 2 , 0-16 string length

compile and exeute the session ....

Hope this works.
Regards
Sanjiv

sbakshi
13th June 2003, 23:37
Hi,
Sorry missed out the last step....
When this report is executed for an item, go to FORM 2 and make the Detailed REport = Yes and then select Item General Data from selection and this should show you the Barcode on Printer OR in the print preview of BWPRINT.

Thnx
Sanjiv

estotz
17th June 2003, 02:39
Hi,
Im trying to print barcodes from Baan using the Barcode field on Maintain report Fields as per the document QG1307.

No matter what value I set this field to (1,2, 9 etc) it doesnt print anything to the printer.

On checking the log file $BSE/log/log.filter6.1, it shows an error:
Barcode script '/am1t/naan4/bse/lib/barcode/hp_barcode/type09' not found or executable.

Obviously this file type09 is not present in our system. However, we do have type01 and type02. What values do I need to enter in the field Barcode so that it maps to type01 or type02 ?

Thanks,
MG.
===
Not sure if anyone has answered your questions.

First of all the printer you print with has to support bar code printing. THe barcode print drivers are stored in a different directory than the regular print drivers.

i.e. print drivers are in BSE/lib/printinf/<letter>/<printdriver>

while barcode drivers are in lib/barcode/<whatever>/<typeN>

the whatever is defined in the print driver ... the typeN is type01 or type02 or type03 etc. for the type of barcode that you want to print.

If you're using a weird printer, it's up to you to code the correct escape sequences in order to setup the printer for the bar code type that you want to print.

Printing data out on a report as a barcode format is a simble as defining the barcode number to define the type, but remember all the above must be satistied first before you will actually see a barcode printed. If you enter a 1, you'll be using the type01 driver, 2 type02 and so on. If you used a 9, it would expect there to be a type09 file in there, and that is the error message you got.

Look at the standard files that Baan gave you for HP printers and barcodes, and you'll probably be able to figure it out.

mgakhar
21st June 2003, 00:28
Thanks estotz for the explanation.

Even I think the problem is with the printer. The thing is that I want to test this iwth a HP printer ... but I found just one HP printer in our site that is setup in Baan. And Unfortunately I cant find where the printer is physically located .... :D

Its been a coupla weeks but the hunt is still on ...


MG.

estotz
22nd June 2003, 17:24
What specific printer are you trying to print a bar code to? I have developed some bar code print drivers for other types of printers, so may be able to send you the drivers.

It sounds like the printer you are using (from your first question) supports HP PCL, since you are using an HP driver with it? Am I right with that assumption?

Check the programming manual for the specific printer you are using to make sure it support bar code printing.

Good luck.

mgakhar
25th June 2003, 22:15
hi estotz,

Finally located a HP printer. However, now when I print to this printer, I dont get any error, but it just prints some junk characters.

I guess I will have to find the manuals of this printer now.:(

Our other printers are Xerox printers.

MG.

kbartelds
26th June 2003, 10:30
Hi,

I've been setting up reports with barcodes for 4 years now, using bwprint client, and never came up with a problem. Just create a printer (windows) using a standard hp laserjet 4 driver and on 99% of the available printers the barcode will be printed, no extra font cartridges needed. I wrote an include which can be used for printing barcodes, with this it will take about 2 minutes to create a report with a barcode on it.

Regards,
Klaas

mgakhar
26th June 2003, 17:29
Hi Klaas,
Actually even I was able to get the barcode to be printed using BWPrint. But we dont want to use BWPrint.

The reason being that we want to create a report which will be printed from Connectware. And I dont think as of now we have any setup to print to BWPrint through Connectware.

Manish.

bdittmar
2nd July 2003, 17:33
Originally posted by mgakhar
Hi Klaas,
Actually even I was able to get the barcode to be printed using BWPrint. But we dont want to use BWPrint.

The reason being that we want to create a report which will be printed from Connectware. And I dont think as of now we have any setup to print to BWPrint through Connectware.

Manish.

Barcodes on PCL-HP Printers uses specific character numbers (cartridge fonts). that means font numbers above no. 24600.
For example No. 24700 is Code128auto.
To access thes fonts you have to upgrade your firmware with an
barcode chip module like "JetCaps"
This modul is hooked to font calls within the LJ PCL5 interpreder.
Typeface Numbers from 24600 to 24800 activates the inteligence for barcode printing.
The data mapped to those special fonts are analysed and converted into barcode directly by the firmware.

Regards Bernd Dittmar

bdittmar
2nd July 2003, 17:40
Originally posted by bdittmar
Barcodes on PCL-HP Printers uses specific character numbers (cartridge fonts). that means font numbers above no. 24600.
For example No. 24700 is Code128auto.
To access thes fonts you have to upgrade your firmware with an
barcode chip module like "JetCaps"
This modul is hooked to font calls within the LJ PCL5 interpreder.
Typeface Numbers from 24600 to 24800 activates the inteligence for barcode printing.
The data mapped to those special fonts are analysed and converted into barcode directly by the firmware.

Regards Bernd Dittmar

Sorry, here's a sample for code 128 barcodedriver by using "JetCaps".

In variable $1 the data from BaaN is stored.

# push cursor position
...............>

#CODE 128 autoswitch
echo "\033(10Q\033(s1p15vsb24700T\c"
#echo "\033&p$blX\c"
echo "$1"

# pop cursor position
..............>

TheBurniou
14th June 2004, 21:29
I am actally trying to use barcode with BWPrint on a Windows server. I am using the include file with the chr$(27) and chr$(22) chars and the thing is that the string seems to be printed in BWprint because when the report is displayd in BWPrint with the chosen device is my windows printer and the "Test Printing" checkbox is checked, I can double click on the "supposed to be barcode field", a question box "Change minimum aspect ratio for barcode" is openning but I can't see the barcode. Even if I really print it.

Need Help
:confused:

lbencic
14th June 2004, 22:46
We had that problem recently. If the Print Preview will not show the bar code, then printing won't get you there.

The instructions in the Quick Guide #1310 - Barcode Printing & BWprint, do mention that you may have to register the 'dbcocx32.ocx' in the registry. But the file name it refers to does not come as part of MY BWprint or anywhere we could fine, maybe the doc is out of date.

Regardless, we were able to update our bw print version to the latest, which apparently will do the registering for you. We were able to print preview and print the bar codes after that.

Good luck.

TheBurniou
16th June 2004, 09:58
I upgraded the BW client files to the 074 version and it does not do any better. The barcode seems to be here but not visible.

kbartelds
16th June 2004, 10:05
Is the length of the barcodefield long enough to hold the codes? If you want to print eg itemcode, length 16, the barcodefield to print must have more than 16 characters. Can you check if the value of the field to be printed in barcode contains illegal characters for the barcode type?

Regards,
Klaas

TheBurniou
16th June 2004, 12:12
The string I want to print is "910046§10§10.000"
The string realy printed is "\e^v*$0910046§10§10.000"
The length of the field in the report is set to 30.

BWPrint sees the field as a barcode because 1 can double click on the field to modify the ratio on the bwprint screen result. But I cant see it.

any idea ?

kbartelds
16th June 2004, 17:18
Seems to be oke. What is the barcode height (set in the report) and min aspect ratio (bw print)? Maybe you can post the code?

Regards,
Klaas

klixy23
16th June 2004, 17:40
The string realy printed is "\e^v*$0910046§10§10.000"

You have define a barcode height of 4 lines (sign $). Have you leave space in your report layout? Is this layout 4 lines height? Try to decrease the barcode height.

TheBurniou
16th June 2004, 20:35
I have decreased the barcode height to 2
I have added a layout of 8 lines and put the field in the center.
The barcode is here but I can't still see it
I have changed the minimum aspect ration in the bwprint screen result from 1 to 4 and no change.

Maybe it is an incompatibility between the datas, the barcode type and height.

What codebar type do you use to print a 20 chars long string ?

kbartelds
17th June 2004, 10:05
Hi,

I would use code 128, any character goes (this is type 10).

Regards,
Klaas

TheBurniou
17th June 2004, 10:27
Thanks to everybody !

The Code 39 (Type 9) did not work with the string I used but with the code 128 (Type 10) is working fine.