KA.Barcode for .NET Suite
How to Generate UPC-E in .NET Application
How to generate & create UPC-E linear barcode images in ASP.NET, WinForms, C#, VB.NET class library
  • Generate UPC-E barcode images in .NET applications
  • Easy to integrate into MS Visual Studio 2005/2008/2010
  • Support any .NET programming languages such as Visual C#.NET, VB.NET, managed C++ etc
  • Adjusting UPCE image orientation angle in 0, 90, 180, or 270 degrees
  • Support UPC-E barcode size setting with bar width, bar height, image width & height parameters
  • Generate supplement barcode symbol with supplemental height & space
  • Include advanced algorithm for checksum digit automatic calculation
  • Compatible with the latest GS1 Barcode Standard for UPC-E
KA.Barcode for .NET Suite is a mature barcode generator SDK library which supports barcode generation in Visual Studio and other .NET framework applications. High-quality UPC-E linear barcodes images can be created with with drag-and-drop or C#/VB.NET programming.
UPC-E Introduction
UPC-E is the short version of Universal Product Code (UPC) barcodes that is widely used in North America, and in countries including the UK, Australia, and New Zealand for tracking trade items in stores. Comparing with UPC-A UPC-E tends to identify small items.

UPC-E Encodable Character Set

  • Numeric digits 0-9

UPC-E Data Length

  • 6 digits excluding the last checksum automatically added by our product
UPC-E Generation in .NET Applications
Above all, please download KA.Barcode for .NET Suite and unzip.

Drag & Drop Barcode Control to Generate UPC-E

  1. 1.
    Open your .NET Project with Visual Studio, and right-click "Choose Items..."
  2. 2.
    Browse and select "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll"
  3. 3.
    Add "BarCodeControl" to Visual Studio "Toolbox"
  4. 4.
    Drag and drop the "BarCodeControl" from the "Toolbox" onto your forms
  5. 5.
    Select the barcode on the form, switch to the Properties Window, and set "Symbology" property to "PDF417"

Generate UPC-E in C#, VB.NET Class Library

Switch to the Visual Studio Solution Explorer window, and add "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll" to as reference of the project. Then copy the following C# or VB.NET to where the UPC-E is generated.
using KeepAutomation.Barcode.Bean;

BarCode upce = new BarCode();
upce.Symbology = KeepAutomation.Barcode.Symbology.UPCE;
upce.CodeToEncode = "012345";
Dim upce As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

upce.Symbology = KeepAutomation.Barcode.Symbology.UPCE
upce.CodeToEncode = "012345"

How to Generate UPC-E with Supplement Barcode

In case of the need of encoding and display of additional information, two-digit supplement barcode (UPCESup2) and five-digit supplement barcode (UPCESup5) could be printed beside UPC-E. Using KA.Barcode for .NET Suite, dynamic supplement barcode with flexible height could be added to UPC-E. The space between the main and supplement barcode is customizable too. Copy the following code to generate UPC-E with supplement barcode in .NET:
Two-digit supplement barcode (UPCESup2)
using KeepAutomation.Barcode.Bean;

BarCode upcesup2 = new BarCode();
upcesup2.Symbology = KeepAutomation.Barcode.Symbology.UPCESup2;
upcesup2.CodeToEncode = "012345";
upcesup2.SupplementCode = "12";
upcesup2.SupplementHeight = 0.8f;
upcesup2.SupplementSpace = 15;
Dim upcesup2 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

upcesup2.Symbology = KeepAutomation.Barcode.Symbology.UPCESup2
upcesup2.CodeToEncode = "012345"
upcesup2.SupplementCode = "12"
upcesup2.SupplementHeight = 0.8
upcesup2.SupplementSpace = 15
Five-digit supplement barcode (UPCESup5)
using KeepAutomation.Barcode.Bean;

BarCode upcesup5 = new BarCode();
upcesup5.Symbology = KeepAutomation.Barcode.Symbology.UPCESup5;
upcesup5.CodeToEncode = "012345";
upcesup5.SupplementCode = "12345";
upcesup5.SupplementHeight = 0.8f;
upcesup5.SupplementSpace = 15;
Dim upcesup5 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

upcesup5.Symbology = KeepAutomation.Barcode.Symbology.UPCESup5
upcesup5.CodeToEncode = "012345"
upcesup5.SupplementCode = "12345"
upcesup5.SupplementHeight = 0.8
upcesup5.SupplementSpace = 15
Generate UPC-E in Microsoft IIS
  1. 1.
    Copy the "barcode" folder from the unzipped folder to IIS web application folder
  2. 2.
    Create a virtual directory named "barcode", then link it to the "barcode" folder in web application folder
  3. 3.
    Testing: Open your web browser, and navigate to "http://localhost/barcode/barcode.aspx?symbology=39&code-to-encode=012345" (symboloy: UPCE=39, UPCESup2=40, UPCESup5=41)
  4. 4.
    Adding UPC-E to web page: insert the following tag onto your web pages <img src="http://localhost/barcode/barcode.aspx?symbology=39&code-to-encode=012345"/>