EAN 128 Check Digit

  carajones 04:44 29 May 12
Locked

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?

  berylross987 10:00 29 May 12

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.

  Greece_6 03:39 30 May 12

Maybe, the check digit calculation does not take the FNC1 start character into account, but it should do.

  Greece_6 08:17 30 May 12

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.

  Erica_S 03:34 31 May 12

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.

Advertisement

This thread is now locked and can not be replied to.

Should I upgrade to Windows 10? Why upgrade to Windows 10? Is Windows 10 good? The pros and cons of!…

1995-2015: How technology has changed the world in 20 years

Illustrator Rachel Lillie discusses how she draws, and the beauty of quietness

macOS Sierra vs Windows 10 comparison: Apple and Microsoft's latest OS releases go head to head |…