Scanner le code 128

paspillon Posted messages 2 Status Member -  
contrariness Posted messages 17903 Registration date   Status Member Last intervention   -
Hello,

Configuration: Windows 7 / Mozilla 11.0

I downloaded a font code128.ttf. With which on Excel I typed a text and selected this font. I then printed the result on a sheet, that is to say my barcode.
My problem arises when I want to scan my barcode. It cannot read it.
Why?
Do I need to add a start and end character?

Thank you in advance for your help.

Pascal

5 answers

paspillon Posted messages 2 Status Member 2
 
I tested several fonts in code 128. They all give me the same result.
That is to say, it cannot be read with a barcode scanner.

I did several searches. And I noticed that:

- unlike code 39, it is not enough to put a start and end character. For code 39, you just need to put a * at the beginning and the end for the code to be readable by the scanner.

- code 128 must go through a code generator to be readable by the scanner.

- by using a code generator, it converts my text and adds a start and end character and a check character.

So my conclusion is that I cannot simply type text in Word or Excel and apply a font. I must use a code generator.

If anyone has another solution, I'm all ears.
2
contrariness Posted messages 17903 Registration date   Status Member Last intervention   6 243
 
Certain rules must be followed for the code to be readable with a barcode scanner.

No lines or colored surfaces in the safety zone. (This is the area around the barcode that must remain clear, but we can manage with front-back in relation to the reading direction)

Do not distort the barcode in a non-homothetic way (there is some tolerance, but there are also limits)

And of course, the scanner must recognize this type of barcode.. (some switch automatically, for others it's the software that gets configured)

Code 128 can only contain a maximum of 70 digits or characters (EAN 13 is the one that is calculated and has 12 digits + 1 check digit)
1
paspillon
 
Thank you for the response contrariness.

All the rules are followed.

The test text I want to read is 123456789.

I tried reading my barcode with several different readers. All read the code 128. But I can't read it when I print it.

I feel like I need to include a start and end character, as well as a control character!!!
0
contrariness Posted messages 17903 Registration date   Status Member Last intervention   6 243
 
There is no check in code 128... just a limit of 70 characters..

Are you sure about the quality of the font? ... try another one.

Generally, a code generator program is used (which gives an image). Fonts are very random...
https://www.cjoint.com/?0Hivq5UiouJ
Here is your code generated with a program.. see what your reader gives.
0
contrariness Posted messages 17903 Registration date   Status Member Last intervention   6 243
 
You are right, code 128 is a complex code that requires calculation... Code 39 is simpler (though...)

A link to help you calculate and generate your code: http://grandzebu.net/informatique/codbar/code128.htm

Good luck!!
0