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

UPC-E Specification



UPC-E (Universal Product Code version E) is the short form representation of a UPC A. There may be 2-digit or 5-digit Supplement to UPC.

UPC-E compression rule from UPC-A

Not all UPC-A numbers can be compressed to UPC-E. These codes who have a corresponding UPC-E code must have at least 4 zeros. The rules are:

  1. If the manufacturer code ends with 000, 100, or 200, the UPC-E code consists of the first two characters of the manufacturer code, the last three characters of the product code, followed by the third character of the manufacturer code. Under this case, The product code must be 00000 and 00999.
  2. If the manufacturer code ends with 00 but does not meet the #1 requirement, The UPC-E code consists of the first three characters of the manufacturer code, the last two characters of the product code, followed by digit “3”. The product code can only contain two digits(00000 to 00099).
  3. If the manufacturer code ends in 0 but non of the above qualifies, the UPC-E consists of the first four digits manufacturer code and the last digit of the product code, followed by the digit “4”. The product code in this case can only contain one digit(00000 to 00009).
  4. If the manufacturer code ends with non-zero digit, the UPC-E code consists of the manufacturer code and the last digit of the product code. In this case the product case can only be one from 00005 to 00009 because 0 to 4 has been used for the above four cases.


Structure of an UPC-E number
A UPC-E barcode has 6 digits with an implied number system 0. The first 5 digits are calculated based on a conversion algorithm described below. The last digit is the check digit of the original UPC-A symbol.

UPC-E Properties
Besides the properties to general barcode, the following property belongs to UPC-E:
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.

UPC-E Check Sum
UPC-E check digit is calculated using standard Mod10 method.

ezBarcodeComponent UPC-E Acceptable String Length
ezBarcodeComponent UPC-E can accept 6, 7, 8, 11, 12, 13, 14, 16, 17 digit length.
If the CodeData is 6 digits, a leading 0 will be added to the CodeData.
If the CodeData is 8 digits, the first 7 digits will be used for UPC-E.



UPC-E examples by using ezBarcodeComponent
[C#]

        using ezBarcodeComponent.Winform; 

        //create barcode class
        Barcode barcode1 = new Barcode(); 
                                                                        
        //Specify the CodeData to encode
        barcode1.CodeData = "01234500009612345";
        //Set the Symbology to UpcE
        barcode1.Symbology = Symbologies.UpcE;
   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 = "01234500009612345"
        'Set the Symbology to UpcE
 barcode1.Symbology = Symbologies.UpcE
        barcode1.SupplementarySeparation = 0.2

   'Save the image  
        barcode1.SaveImageAs("UpcE.gif", System.Drawing.Imaging.ImageFormat.Gif)
                        
Example of UPC-E barcode images with variable digit length.   
 
Image Description
6 digits CodeData = "012345"
A leading 0 is added to CodeData.
No supplementary part.
7 digits CodeData = "0123456"
No supplementary part.
8 digits CodeData = "01234565"
The first 7 digits is used for CodeData.
No supplementary part.
11 digits CodeData = "01234500009"
The last digit is the Mod 10 check sum.
No supplementary part.
12 digits CodeData = "012345000096"
The last digit is the Mod 10 check sum.
No supplementary part.
13 digits CodeData = "0123450000912"
The 8th digit is the Mod 10 check sum.
The last two digits are supplementary part.
14 digits CodeData = "01234500009612"
The 8th digit is the Mod 10 check sum.
The last two digits are supplementary part.
16 digits CodeData = "0123450000912345"
The 8th digit is the Mod 10 check sum.
The last five digits are supplementary part.
17 digits CodeData = "01234500009612345"
The 8th digit in the image is the Mod 10 check sum.
The last five digits are supplementary part.