KA.Barcode for .NET Suite
How to Generate UPC-E in C# Application
Generate & create linear UPC-E barcode images in C#, ASP.NET web applications, and windows forms

C# barcode generator: how to generate, create, print UPC-E barcode in asp.net with free c# example

  • Support UPC-E barcode creation within Visual C#.NET programs
  • Generate & create dynamic UPC-E barcodes with supplement 2 &5 digits barcode add-on
  • Written in C#.NET with full integration into .NET Framework 2.0, 3.0, 3.5 and above versions
  • Perfectly work with Microsoft Visual Studio 2005/2008/2010
  • Compatible with GS1 system of standard for UPC-E generation & customization
  • Automatically add number system and check digit for UPC-E barcodes
  • Draw UPC-E images in stream & graphics object, and save in image formats like png, jpeg, gif, tiff, etc.
  • Output high-quality UPC-E barcodes for all printers and scanners
UPC-E Generator for C#.NET is one function of KA.Barcode Generator for .NET, which is developed in Visual C#, allowing UPC-E and other 20 + linear & 2D barcode creation and customization in .NET applications using C# programming. Flexible barcode options are provided for specify every aspect of UPC-E barcode, including bar width, image width & height, margins, image rotation & resolution in dpi, and human-readable text etc.
Images in Visual Studio Class by using C#.NET programming ....
This walkthrough will show you how to generated barcodes for ASP.NET in Visual Studio by using free C#.NET Barcode Library DLL with use-friendly...
C#.NET. How to Generate Barcodes in RDLC Using C#.NET. ....
UPC-E Introduction
UPC-E is also known as Universal Product Code version E, UPC-E Supplement 5/Five-digit Add-On, UPC-E Supplement 2/Two-digit Add-On, UPC-E+5, UPC-E+2, UPC-E0, E0, UPC-E1, E1, GTIN-12 with lead "0", GS1-12, UCC-12, which is generally used on products with very small packaging where a full UPC-A barcode couldn't reasonably fit.
UPC-E Encodable Character Set:
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • 6 digits encodabe
  • Start with a number system and end with a check digit
UPC-E Barcode Generation in C#.NET

How to Install UPC-E Barcode for .NET Suite into your .NET Project

  1. 1.
    Download KA.Barcode Generator for .NET Suite and unzip;
  2. 2.
    Add "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll" to your C# project reference;
  3. 3.
    Click "Add Reference" in "project" and choose "Browse" in the pop-up window;
  4. 4.
    Locate your "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll";
  5. 5.
    Click "OK"; now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references.

How to Generate UPC-E in .NET Applications with C# Demo Code

using KeepAutomation.Barcode.Bean;

BarCode upce= new BarCode();
upce.Symbology = KeepAutomation.Barcode.Symbology.UPCE;

// Set UPC-E valid encoding data: 6 numeric digits.
upce.CodeToEncode = "123456";

// Apply checksum for UPC-E barcode.
upce.ChecksumEnabled = true;

// Display UPC-E checksum in the human-readable text
upce. DisplayChecksum = true;

// UPC-E unit of measure, Pixel, Cm and Inch supported.
upce.BarcodeUnit = BarcodeUnit.Pixel;

// UPC-E image resolution in DPI.
upce.DPI = 72;

// UPC-E module bar width, ie. Width of the narrowest bar (X dimention), default is 1 pixel.
upce.X = 3;

// UPC-E module bar height (Y dimention)
upce.Y = 60;

// UPC-E margin size, a 10X space is automatically added according to specification.
upce.LeftMargin = 0;
upce.RightMargin = 0;
upce.TopMargin = 0;
upce.BottomMargin = 0;

// UPC-E image orientation: 0, 90, 180, 270 degrees supported
upce. Orientation = KeepAutomation.Barcode.Orientation.Degree0;

// Display human readable text
upce.DisplayText = true;
upce.TextFont = new Font ("Arial", 10f, FontStyle. Regular);
upce.TextMargin = 6;

// Print UPC-E barcodes in Png, Jpeg, Gif, Tiff, Bmp, etc. image formats.
upce.ImageFormat = ImageFormat.Png;

// Generate and save UPC-E barcodes to image format

// Create UPC-E barcodes in Stream object
upce.generateBarcodeToStream(".NET System.IO.Stream Object");

// Draw & Print UPC-E barcodes to Graphics object
upce.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");

// Generate UPC-E barcodes & write to byte[]
byte[] barcodeInBytes = upce.generateBarcodeToByteArray();

// Generate UPC-E barcodes & encode to System.Drawing.Bitmap object
Bitmap barcodeInBitmap = upce.generateBarcodeToBitmap();