vidya_giree
14th May 2009, 12:19
Hi,
We are printing Item barcodes (Type : Code 39) using Zebra printer. While scanning these barcodes with scanner -Symbol LS2208, unable to scan the barcodes if barcode text length is greater than 11. If the length is less than or equal to 11 the scanning is done properly. The same scanner is being used to scan Code 128 barcodes printed from some other applications successfully. I have checked Item barcodes with type Code128 also but experiencing similar issue. Would any one help to resolve this issue?

Code used to create barcode is
barcode = chr$(27) & chr$(22) & ")#" & chr$(32 + item.length) & strip$(shiftl$(tcibd001.item)) where item.length is the length of field tcibd001.item.
Thanks & Regards
Vidya

mark_h
14th May 2009, 16:27
Not familiar with code 128 so the only thing I can think of is there possible a non-printable character(for code 39) in your items? I know we had problems when items contained certain characters - like + or /. I had to write a little routine to process the item. And also make sure that barcode field is long enough for all the characters. Plus is item.length only the actual characters of the item? Or is it possible always 32(or your item size).

Sorry, but I have not used escape sequences in forever so I am not familiar with what you laid out. Probably not much help but this is what popped into my mind.

shah_bs
14th May 2009, 21:11
I did not think the Zebra printer understood escape sequences. It needs input as pure text.

So, if you are using a zebra printer, you need to program the barcode and everything else in ZPL (Zebra Programming Languages).

The approach I use is as follows:
- Generate a report session as usual, with all the fields that are needed in the label - make sure to generate a type two or type one report
- Repaint the report layout using the ZPL commands.
Attached file gives an example of a zebra label that prints two or three fields and the barcodes for a couple of these fields. All the fields that are FFFFFFFFFFF... are the standard BAAN fields. Everything else is ZPL.

You can download the ZPL Programmer's manual from the ZEBRA website.

mark_h
14th May 2009, 22:12
Here I was thinking about a normal printer and not a tag printer. In that case I recommend using RMCis label software - it was cheap and pretty easy to setup and I did not have to do the ZPL coding needed to design a label. Shah_bs is correct about the ZPL coding.

sushil
16th May 2009, 10:54
Hi,

We use Zebra Z4M Plus(code 39) , as we print barcodes using bwprint - it works fine.
i do not understand the necessity of the code below.

Code used to create barcode is
barcode = chr$(27) & chr$(22) & ")#" & chr$(32 + item.length) & strip$(shiftl$(tcibd001.item)) where item.length is the length of field tcibd001.item.

just trim and print - it works.

vidya_giree
16th May 2009, 19:24
Thank you very much for the quick responses....We are able to scan Code 128 barcodes with little bigger size without any ZPL programming...(in the code provided instead of the string ")#" use "*$"). But we need to print Code 39 barcodes which are not getting scanned if item.length >11 . item.length can have values up to 38. Checked with different barcode height and aspect ratio but couldn't scan. Scanner has set up Code 39 to read full length. Any idea why it happens??

mark_h
18th May 2009, 01:48
ZPL programming is used for printing the labels on a zebra printer. Without that then anything that prints would be suspect. I know of no other way to generate bar codes on a zebra printer.

So to test the scanners download a microsoft barcode 3 of 9 font. Install into microsoft word. Then generate some barcodes on a normal printer. Then check these with the scanner. They should scan. If they do then that means the bar code you are generating has the issue.

bdittmar
18th May 2009, 12:25
Hi,
We are printing Item barcodes (Type : Code 39) using Zebra printer. While scanning these barcodes with scanner -Symbol LS2208, unable to scan the barcodes if barcode text length is greater than 11. If the length is less than or equal to 11 the scanning is done properly. The same scanner is being used to scan Code 128 barcodes printed from some other applications successfully. I have checked Item barcodes with type Code128 also but experiencing similar issue. Would any one help to resolve this issue?

Code used to create barcode is
barcode = chr$(27) & chr$(22) & ")#" & chr$(32 + item.length) & strip$(shiftl$(tcibd001.item)) where item.length is the length of field tcibd001.item.
Thanks & Regards
Vidya

Hello,

i'm missing the third parameter for the barcode ?

This sequence is used while printing barcode with bwprint.
(For Zebra use ZPL language)

barcode = chr$(27)&chr$(27)&"type - hight - number of characters in string" &barcodevariable

Built the 3rd parameter in a library like:

if len(shiftl$(shiftr$(tcibd001.item)) = 1 then
bclenght = ")#!"
endif
if len(shiftl$(shiftr$(tcibd001.item)) = 2 then
bclenght = ")#""
endif
if len(shiftl$(shiftr$(tcibd001.item)) = 3 then
bclenght = ")##"
endif
a.s.o

barcode = chr$(27)&chr$(22)&bclength&(shiftl$(shiftr$(tcibd001.item))

Refer to Infor QuickGuide 1310

Regards