.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 |
| SupplementData |
supplement-data |
"" |
Barcode supplementary value to encode. only valid for EAN-8, EAN-13, UPC-A, UPC-E, ISBN, ISSN |
| SupplementSpace |
supplement-space |
15 |
Barcode supplementary space between main barcode and supplement barcode. only valid for EAN-8, EAN-13, UPC-A, UPC-E, ISBN, ISSN |
| GraphicsUnit |
graphics-unit |
GraphicsUnit.Pixel |
BarCode graphics meature for all size related settings. 0: pixel; 1: cm; 2: inch. Default is pixel |
| X |
x |
2 |
Width of barcode module (narrow bar), default is 2 pixel |
| Y |
y |
75 |
Barcode module height, default is 75 pixel |
| LeftMargin |
left-margin |
0 |
Barcode image left margin |
| RightMargin |
right-margin |
0 |
Barcode image right margin |
| TopMargin |
top-margin |
0 |
Barcode image top margin |
| BottomMargin |
bottom-margin |
0 |
Barcode image bottom margin |
| Resolution |
resolution |
72 |
Barcode image resolution in dpi |
| Rotate |
rotate |
0 |
Barcode rotate angle, valid values: 0, 90, 180, 270 |
| DisplayCodeText |
display-code-text |
true |
If true, display barcode value text, otherwise do not display. |
| CodeTextFont |
code-text-font |
"Arial", Font.PLAIN, 11 |
Barcode text font style |
| Format |
format |
ImageFormat.Png |
Image format type. Using System.Drawing.Imaging.ImageFormat |
.NET Barcode Generator supports most common linear (1d) and matrix (2d) bar code standards, including: