Tech Helproom
It's free to register, to post a question or to start / join a discussion
EAN 128 Check Digit
Likes # 0
Posted May 29, 2012 at 4:44AM
Hi, everybody, I am implementing an barcode API and want to generate a EAN 128 barcode as below: BarCode barcode = new BarCode(); barcode.setType(IBarCode.EAN128); barcode.setData("(00) 00030017 000043516"); The correct check sum should be 8, however, the API output 2. Is there something wrong? Can I output EAN 128 without check digit?
Likes # 0
Posted May 29, 2012 at 10:00AM
The data you encode should be calculated with 10 Module Algorithm. If you sue the 103 module algorithm, there must be change to the Check Sum Class with different results.
Likes # 0
Posted May 30, 2012 at 3:39AM
Maybe, the check digit calculation does not take the FNC1 start character into account, but it should do.
Likes # 0
Posted May 30, 2012 at 8:17AM
There must be a bug with the barcode generator you use as above saying. A mature and reliable EAN 128 barcode generation component is required for you to quickly and exactly calculate the check sum for the generated EAN 128 barcode image.
Likes # 0
Posted May 31, 2012 at 3:34AM
For hiding the EAN 128 check sum digit, you may use the following code for the EAN 128 barcode image without checksum: barcode.setdisplayCheckSum(false); Hope I helped.
Reply to this topic
This thread has been locked.
Check out PC Advisor's other tech forums
Top 5 Most Popular
-
Xbox One launch live video: watch the new Xbox launch as it happened
-
Samsung Galaxy S4 vs Nexus 4 smartphone comparison review: what's the best Android?
-
Samsung Galaxy S4 vs Apple iPhone 5 comparison review
-
Galaxy S4 vs BlackBerry Z10 comparison review - which is best, the Samsung or the BlackBerry?
-
Microsoft Windows 8 review



