EAN 128 Check Digit

  carajones 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 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 30 May 12

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

  Greece_6 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 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.

Windows 10 Home vs Windows 10 Pro comparison: Here are the extra features you get in the Pro version

Why Formula-e needs to go faster

How Instagram spots trends

How to use Apple Music in the UK: Complete guide to Apple Music's features

We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message