C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

EAN8 and EAN13

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 3
Stalker Posted: Fri, Apr 11 2008 9:36 AM

It seems that what is working for EAN13, does not work for EAN8 in C1Barcode  version 2.0.20073.19 . The image and code, shown for EAN8 after typing first 7 digits is different to those ones, printed on different products. After referring the EAN8 guidelines for checksum digit, I confirm that the 8. digit, generated with C1Barcode is wrong.

The EAN-8 check digit is calculated using modulo 10 method. Here outlines the steps to calculate EAN-8 check digit:
1. From the right to left, start with odd position, assign the odd/even position to each digit.
2. Sum all digits in odd position and multiply the result by 3.
3. Sum all digits in even position.
4. Sum the results of step 3 and step 4.
5. Divide the result of step 4 by 10. The check digit is the number which adds the remainder to 10.

So for the Pinapple Juice ( code 20046132 ) we have:

   (3+6+0+2)*3 = 33
   (1+4+0) = 5
   33 + 5 = 38               10 - (38 % 10) = 2
   2 0 0 4 6 1 3  = 2

the sample, provided with C1Barcode, gives us 20046134.

BELLAROM DE LUXE Nuss&Grisp : 20131562 (C1Barcode 20131566)
   (6+1+1+2)*3 = 30
   (5+3+0) = 8
   30 + 8 = 32               10 - (38 % 10) = 2
   2 0 1 3 1 5 6 = 2

but:  

BELLAROM DE LUXE Erdbeer&Joghurt : 20131548 (C1Barcode 20131548)
   (4+1+1+2)*3 = 24
   (5+3+0) = 8
   24+8 = 32                 10 - (32 % 10) = 8
   2 0 1 3 1 5 4  = 8

what checksum algorythm is used ?

Top 25 Contributor
Posts 665
C1_DaveT replied on Fri, May 30 2008 11:25 AM
Hi
 
An issue with check-digit calculation in EAN8 encoding was fixed in a recent build. Try using the following build:
 
 
Regards
Dave
<Stalker> wrote in message news:203750@10.0.1.98...

It seems that what is working for EAN13, does not work for EAN8 in C1Barcode  version 2.0.20073.19 . The image and code, shown for EAN8 after typing first 7 digits is different to those ones, printed on different products. After referring the EAN8 guidelines for checksum digit, I confirm that the 8. digit, generated with C1Barcode is wrong.

The EAN-8 check digit is calculated using modulo 10 method. Here outlines the steps to calculate EAN-8 check digit:
1. From the right to left, start with odd position, assign the odd/even position to each digit.
2. Sum all digits in odd position and multiply the result by 3.
3. Sum all digits in even position.
4. Sum the results of step 3 and step 4.
5. Divide the result of step 4 by 10. The check digit is the number which adds the remainder to 10.

So for the Pinapple Juice ( code 20046132 ) we have:

   (3+6+0+2)*3 = 33
   (1+4+0) = 5
   33 + 5 = 38               10 - (38 % 10) = 2
   2 0 0 4 6 1 3  = 2

the sample, provided with C1Barcode, gives us 20046134.

BELLAROM DE LUXE Nuss&Grisp : 20131562 (C1Barcode 20131566)
   (6+1+1+2)*3 = 30
   (5+3+0) = 8
   30 + 8 = 32               10 - (38 % 10) = 2
   2 0 1 3 1 5 6 = 2

but:  

BELLAROM DE LUXE Erdbeer&Joghurt : 20131548 (C1Barcode 20131548)
   (4+1+1+2)*3 = 24
   (5+3+0) = 8
   24+8 = 32                 10 - (32 % 10) = 8
   2 0 1 3 1 5 4  = 8

what checksum algorythm is used ?



http://helpcentral.componentone.com/cs/forums/p/74923/203750.aspx#203750

Page 1 of 1 (2 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2009 ComponentOne LLC All Rights Reserved.