.NET Barcode UPC-E Generator for .NET, C#, ASP.NET, VB.NET
.NET Barcode offers the most affordable .NET barcode generator for barcode .NET professionals.
.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
UPC-E is a variation of UPC-A
which allows for a more compact barcode by eliminating "extra" zeros.
Since the resulting UPC-E barcode is about half the size as an UPC-A barcode,
UPC-E is generally used on products with very small packaging where a full
UPC-A barcode couldn't reasonably fit.
How to generate UPC-E barcodes in C#.NET Class?
The following C# .NET code illustrates how to generate a UPC-E barcode in C# class:
using KeepDynamic.Barcode.Generator;
BarCode barcode = new BarCode();
barcode.SymbologyType = SymbologyType.UPCE;
barcode.CodeText = "012345";
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("C://barcode-upce-csharp.png");
barcode.drawBarcode("Graphics object");
barcode.drawBarcode("Stream object");
How to generate Code-39 barcodes in VB.NET Class?
The following VB.NET code illustrates how to generate Code-39 barcodes in VB.NET class:
// Create linear barcode object in VB.NET
Dim barcode As KeepDynamic.Barcode.Generator.BarCode
barcode = New KeepDynamic.Barcode.Generator.BarCode()
// Set barcode symbology type to UPC-E in VB.NET
barcode.SymbologyType = SymbologyType.UPCE;
// Set UPC-E barcode value in VB.NET
barcode.CodeText = "012345"
// Set UPC-E drawing image format to PNG in VB.NET
barcode.Format = ImageFormat.Png
// Generate UPC-E barcode & encode to the png image in VB.NET
barcode.drawBarcode("C://barcode-upce-vbnet.png")
// Generate UPC-E barcode & print to System.Drawing.Graphics object in VB.NET
barcode.drawBarcode("Graphics object")
// Create UPC-E barcode & draw to System.IO.Stream object in VB.NET
barcode.drawBarcode("Stream object")
Creating UPC-E barcodes using .NET Barcode Generator Windows Form Control
To create UPC-E barcodes in Windows Forms applications, do the following procedures:
- Add KeepDynamic.BarCode.Windows.dll to your C#, VB.NET project reference
- Add KeepDynamic.BarCode.Windows.dll to windows project toolbox
- Drag the BarCodeControl item to your windows forms
Creating UPC-E barcodes using ASP.NET Barcode Generator ASP.NET Web Form Control
To create UPC-E barcodes in ASP.NET Web Forms applications, do the following procedures:
- Add KeepDynamic.BarCode.AspNet.dll to your C#, VB.NET project reference
- Add KeepDynamic.BarCode.AspNet.dll to windows project toolbox
- Drag the BarCodeControl item to your ASP.NET Web form pages, in your ASP.NET design view
.NET UPC-E Barcodes Properties
Class Properties |
HTTP Parameters |
Default |
Comments |
SymbologyType |
symbology-type |
SymbologyType.Code128 |
Barcode type. Values for UPC-E are SymbologyType.UPCE,
SymbologyType.UPCE_2, SymbologyType.UPCE_5
|
CodeText |
code-text |
"" |
Barcode value to encode. Valid value is 6 digits. |
EnableChecksum |
enable-checksum |
true |
Checksum for barcode value |