Home
ezBarcode Component Web Prev Page Prev Page
ezBarcodeComponent Web Control
Getting Started
Setup ezBarcode Component
Examples
Trial and Redistributables
FAQ
ezBarcodeComponent Symbologies
CodaBar
Code 11
Code 128
Code 39
Code 39 Ext
Code 93
Code 93 Ext
Ean 13
Ean 8
Industrial 2 of 5
Interleaved 2 of 5
Ucc/Ean 128
MSI
Postnet
Planet
Telepen
Upc A
Upc E
IntelligentMail
Sscc 18
Scc 14
Itf 14
PDF 417
Macro PDF 417
DataMatrix
QR Code
ezBarcodeComponent.Web
Barcode Class
Barcode Members
Barcode Constructor
Properties
BarcodeImageFormat Property
BarHeight Property
BearerBarHorizontalWidth Property
BearerBarVerticalWidth Property
Caption Property
CaptionAlignment Property
CaptionColor Property
CaptionFont Property
CaptionPosition Property
CaptionSpace Property
CharacterGrouping Property
CheckCharacter Property
CheckCharacterInText Property
CODABARStartChar Property
CODABARStopChar Property
Code128Set Property
CodeData Property
DataMatrixBarSize Property
DataMatrixEncodingMode Property
DataMatrixPreferredFormat Property
HumanReadableTextFontColor Property
HumanReadableTextPosition Property
IsHumanReadableTextOnTop Property
LeftMargin Property
MacroPdf417FileId Property
MacroPdf417SegmentCount Property
MacroPdf417SegmentIndex Property
PDF417BarWidth Property
PDF417Columns Property
Pdf417CompactionType Property
Pdf417ErrorCorrectionLevel Property
PDF417Rows Property
Pdf417Truncated Property
PDF417YtoXRatio Property
Picture Property
PostnetHeightShort Property
PostnetHeightTall Property
PostnetSpacing Property
QRCodeBarSize Property
QRCodeEncoding Property
QRCodeErrorCorrectionLevel Property
QRCodeVersion Property
Resolution Property
RotationAngle Property
ShowHumanReadableText Property
SupplementarySeparation Property
Symbology Property
TopMargin Property
UPCESystem Property
UseCaret Property
WideToNarrowRatio Property
XDimension Property
Methods
Render Method
SaveImageAs Method
BarcodeImageFormat Enumeration
CaptionPosition Enumeration
Code128 Enumeration
DataMatrixEncodingModes Enumeration
DataMatrixPreferredFormats Enumeration
ImageGen Class
ImageGen Members
ImageGen Constructor
Properties
IsReusable Property
Methods
ProcessRequest Method
PDF417CompactionMode Enumeration
PDF417ErrorCorrection Enumeration
QRCodeEncoding Enumeration
QRCodeErrorCorrectionLevel Enumeration
QRCodeVersion Enumeration
RotationAngles Enumeration
stringProcess Class
stringProcess Members
stringProcess Constructor
Methods
DecodeString Method
EncodeString Method
Symbologies Enumeration
ezBarcodeComponent Help

Ean 8 Specification



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.