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 ?
<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