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 13 Specification



Ean 13 (European Article Number) is a barcoding standard which is a superset of the original 12-digit Universal Product Code (UPC) system developed in North America. EAN-13 encodes 12 digits of numeric (0 through 9) message data along with a trailing check digit, for a total of 13 digits of barcode data.

Structure of an EAN 13 number
An EAN-13 number consists of four areas:
(1) The number System;
(2)The manufacturer code;
(3) the product code;
(4)The check digit.

Ean 13 Properties
Besides the properties to general barcode, the following property belongs to Ean 13 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 13 Check Sum
EAN 13 check digit is calculated using standard Mod10 method.

ezBarcodeComponent Ean 13 Acceptable String Length
ezBarcodeComponent Ean 13 can accept 12, 13, 14, 15, 17, 18 digit length.



Ean 13 examples by using ezBarcodeComponent
[C#]

        using ezBarcodeComponent.Winform; 

        //create barcode class
        Barcode barcode1 = new Barcode(); 
                                                                        
        //Specify the CodeData to encode
        barcode1.CodeData = "012345678901234567";
        //Set the Symbology to Ean13
        barcode1.Symbology = Symbologies.Ean13;
   barcode1.SupplementarySeparation = 0.2;

   //Save the image
        barcode1.SaveImageAs("Ean13.gif", System.Drawing.Imaging.ImageFormat.Gif);


[Vb.net]
      'create barcode class
        Dim barcode1 As New Barcode
                                                                
        'Specify the CodeData to encode 
        barcode1.CodeData = "012345678901234567"
        'Set the Symbology to Ean13
 barcode1.Symbology = Symbologies.Ean13
        barcode1.SupplementarySeparation = 0.2

   'Save the image  
        barcode1.SaveImageAs("Ean13.gif", System.Drawing.Imaging.ImageFormat.Gif)
                        
Example of Ean 13 barcode images with variable digit length.   
 
Image Description
12 digits CodeData = "012345678901"
The last digit is the Mod 10 check sum of the first 12 digits.
No supplementary part.
13 digits CodeData = "0123456789012"
The last digit is the Mod 10 check sum of the first 12 digits.
No supplementary part.
14 digits CodeData = "01234567890123"
The 13th digit is the Mod 10 check sum of the first 12 digits.
The last two digits are supplementary part.
15 digits CodeData = "012345678901234"
The 13th digit is the Mod 10 check sum of the first 12 digits.
The last two digits are supplementary part.
17 digits CodeData = "01234567890123456"
The 13th digit is the Mod 10 check sum of the first 12 digits.
The last five digits are supplementary part.
18 digits CodeData = "012345678901234567"
The 13th digit is the Mod 10 check sum of the first 12 digits.
The last five digits are supplementary part.