Home
ezBarcode Component WinForm Prev Page Prev Page
ezBarcodeComponent Winform
Getting Started
Setup ezBarcodeComponent
Examples
Trial and Redistributables
FAQ
ezBarcodeComponent Symbologies
CodaBar
Code11
Code128
Code39
Code39Ext
Code93
Code93Ext
Ean13
Ean8
Industrial 2 of 5
Interleaved 2 of 5
Ucc/Ean 128
MSI
Postnet
Planet
Telepen
Upc A
Upc E
IntelligentMail
Sscc18
Scc14
Itf 14
PDF 417
Macro PDF 17
DataMatrix
QR Code
ezBarcodeComponent.Winform Reference
Barcode Class
Barcode Members
Barcode Constructor
Properties
AutoFitControlToBarcode Property
BackColor 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
Font Property
ForeColor Property
HumanReadableTextFontColor Property
HumanReadableTextPosition Property
IsHumanReadableTextOnTop Property
LeftMargin Property
MacroPdf417FileId Property
MacroPdf417SegmentCount Property
MacroPdf417SegmentIndex Property
NarrowToWideRatio 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
XDimension Property
Methods
Dispose Method
OnPaint Method
DrawOnGraphics Method
SaveImageAs Method
CaptionPosition Enumeration
Code128 Enumeration
DataMatrixEncodingModes Enumeration
DataMatrixPreferredFormats Enumeration
PDF417CompactionMode Enumeration
PDF417ErrorCorrection Enumeration
QRCodeEncoding Enumeration
QRCodeErrorCorrectionLevel Enumeration
QRCodeVersion Enumeration
RotationAngles Enumeration
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.