Ean 8 (European Article Number) is a
shortened version of the EAN-13 code. The primary purpose of the
EAN-8 is to be used on small packages.
Structure of an EAN 8 number
It includes a 2 or 3 digit country code, 4 or 5 data digits
(depending on the length of the country code), and a checksum
digit.
Ean 8 Properties
Besides the properties to general barcode, the following property
belongs to Ean 8 only:
SupplementarySeparation gets or sets the
space between the end of barcode and the begin of supplementary for
UPC/EAN in Inches. Default is 0.2 inches.
Ean 8 Check Sum
Ean 8 check digit is calculated using standard Mod10 method.
ezBarcodeComponent Ean 8 Acceptable String Length
ezBarcodeComponent Ean 8 can accept 7, 8, 9, 10, 12, 13 digit
length.
Ean 8 examples by using ezBarcodeComponent
[C#]
using ezBarcodeComponent.Winform;
//create barcode class
Barcode barcode1 = new Barcode();
//Specify the CodeData to encode
barcode1.CodeData = "0123456789012";
//Set the Symbology to Ean8
barcode1.Symbology = Symbologies.Ean8;
barcode1.SupplementarySeparation = 0.2;
//Save the image
barcode1.SaveImageAs("Ean8.gif", System.Drawing.Imaging.ImageFormat.Gif);
[Vb.net]
'create barcode class
Dim barcode1 As New Barcode
'Specify the CodeData to encode
barcode1.CodeData = "0123456789012"
'Set the Symbology to Ean8
barcode1.Symbology = Symbologies.Ean8
barcode1.SupplementarySeparation = 0.2
'Save the image
barcode1.SaveImageAs("Ean8.gif", System.Drawing.Imaging.ImageFormat.Gif)
Example of Ean 8 barcode images with variable digit length.
Image |
Description |
|
7 digits CodeData = "0123456"
The last digit is the Mod 10 check sum of the first 7 digits.
No supplementary part. |
|
8 digits CodeData = "01234565"
The last digit is the Mod 10 check sum of the first 7 digits.
No supplementary part. |
|
9 digits CodeData = "012345678"
The 8th digit is the Mod 10 check sum of the first 7 digits.
The last two digits are supplementary part. |
|
10 digits CodeData = "0123456789"
The 8th digit is the Mod 10 check sum of the first 7 digits.
The last two digits are supplementary part. |
|
12 digits CodeData = "012345678901"
The 8th digit is the Mod 10 check sum of the first 7 digits.
The last five digits are supplementary part. |
|
13 digits CodeData = "0123456789012"
The 8th digit is the Mod 10 check sum of the first 7 digits.
The last five digits are supplementary part. |