KA.Barcode for .NET Suite
How to Generate UPC-E in VB.NET Application
How to generate & print UPC-E Bar Code Images in ASP.NET, IIS, C#, VB.NET class library
  • UPC-E generation in Microsoft Visual Basic .NET
  • Easy-to-use & integrate UPC-E Barcode Generation into VB.NET projects
  • Draw UPC-E using VB.NET in ASP.NET Web Forms and windows forms applications
  • Generate UPC-E in stream object, in graphics object, and image formats using Visual Basic .NET
  • Print and save UPC-E as gif, jpeg, png, tiff, and bitmap files in VB.NET class
  • Checksum digit automatically added for linear UPC-E barcodes
  • All generated UPC-E bar codes are strictly compatible with GS1 general specifications
VB.NET UPC-E barcode encoder SDK library is a barcode generation function of KeepAutomation .NET Barcode Generator, which enables developers to easily generate UPC-E, UPC-E+2, UPC-E+5 barcodes in VB.NET class, VB.NET Windows Forms and VB.NET ASP.NET web applications. You can easily adjust barcode parameters with the VB.NET sample codings.
UPC-E Introduction
UPC-E is a linear barcode symbology specified by GS1 specification. It is named Universal Product Code version E, UPC-E+2, UPC- E Supplement 2 (Two-digit Add-On), UPC- E +5, UPC-E Supplement 5 (Five-digit Add-On), UCC-12, GS1-12.
  • UPC-E Encodable Data: numeric digits 0-9
  • UPC-E Data Capacity: 6 digits (the last checksum digit will automatically added by KeepAutomation)
UPC-E Generation in VB.NET Class Library

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

  1. 1.
  2. 2.
    Add "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll" to reference
  3. 3.
    Add "KeepAutomation.Barcode.Windows" or "KeepAutomation.Barcode.Web" to Visual Studio .NET ToolBox

How to Generate, Create UPC-E in .NET with VB.NET Demo Code

Dim upce As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
upce.Symbology = KeepAutomation.Barcode.Symbology.UPCE
upce.CodeToEncode = "8475122"
' Apply checksum for UPC-E barcode.
upce.ChecksumEnabled = true

' Set UPC-E image size

' Unit of measure, Pixel, Cm and Inch supported.
upce.BarcodeUnit = BarcodeUnit.Pixel
' UPC-E image resolution in DPI.
upce.DPI = 72
' UPC-E bar module width (X dimention)
upce.X = 2
' UPC-E bar module height (Y dimention)
upce.Y = 60
' Image left margin size, minimum value is 10X.
upce.LeftMargin = 0
' Image right margin size, minimum value is 10X.
upce.RightMargin = 0
' Orientation, 90, 180, 270 degrees supported
upce.Orientation = Orientation.Degree0

' Supplement code. It should be 2 or 5 digits
upce.SupplementCode = "02"
' Supplement barcode height vs barcode height ratio.
upce.SupplementHeight = 0.8f
' Space between barcode and supplement barcode
upce.SupplementSpace = 15

' Set UPC-E human readable text style

' Display human readable text
upce.DisplayText = true
upce.TextFont = new Font ("Arial", 10f, FontStyle. Regular)
' Space between barcode and text
upce.TextMargin = 6
' Display checksum in the text
upce. Displaychecksum = true

upce.generateBarcodeToImageFile("C://upce-vb-net.gif")

' Generate UPC-E barcodes in image GIF format
upce.generateBarcodeToImageFile("barcode-upce-csharp.gif");

' 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();

Other image formats including Png, Bmp, Tiff and Jpeg are also available to suit your needs.