-
Barcode Font
Hello Guys,
I am new to Crystal Reports. I am trying to render a bar-code on the report. The text for the bar-code is basically a file address location. It is looking fine but, when we scan the bar-code the "\" are missing. The barcode font I am using is "3 to 9 Barcode".
For example the actual text (file location) is : "z:\1\1\1\1\1\32.dst". The text after scanning is coming out as - "z1111132.dst". Can anybody help me with this. Any help greatly appreciated. Thanks.
-
Re: Barcode Font
Welcome to CodeGuru forums!
I remember that some ascii characteres need to be encoded, and the character \ is encoded as %L
Also
The next url could be helpful --> http://en.wikipedia.org/wiki/Code_39
-
Re: Barcode Font
\ is not a valid character in code 3 of 9 nor is :
http://en.wikipedia.org/wiki/Code_39
Edit to add: You could use code 128 to get the result you want as it supports both \ and : characters
http://en.wikipedia.org/wiki/Code_128
-
Re: Barcode Font
Thanks guys. But can you suggest how to code it.
When is use Code39 and code it as : "*Z/Z%L1%L1%L1%L1%L1%L3.DST*" the scanned text is coming out as : z/z5l15l15l15l15l15l3.dst
And When I am using Code128Wide font and code it as "Z:\1\1\1\1\1\3.DST", I am not able to scan the barcode.
Please help.
-
Re: Barcode Font
Code 3 of 9 does not support \ characters so you can not do it with code 3 of 9
Code 128 requires a check digit added to the end, if you are using a font then you will need to calculate the proper check digit and append it to the end of your barcode data.
-
Re: Barcode Font
Try with the next ---> http://www.barcodesinc.com/free-barcode-font/
It will download barcode 3-9 fonts (standard and extended (this support full ascii codes))
-
Re: Barcode Font
As I said 3 of 9 does not support \ nor : characters there are exactly 39 valid characters in a code 3 of 9 barcode and those are not in the list. See the link in my previous post for all valid characters which can be coded in a 3 of 9 barcode.
Code 128 supports the characters required, 3 of 9 does not.