EAN 128 Check Digit

  carajones 04:44 AM 29 May 12

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


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

Toshiba dynaPad release date, price and specs: Another Surface Pro 4 rival with Windows 10

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

Google Maps for web gets a Material Design-inspired makeover

New Apple TV 2015 release date and UK price: buy from Apple in late October, in store in November