VB.NET UPC-E Generator Data Encoding Tutorial

sample source code to input valid data and generate linear UPC-E images in VB.NET

VB.NET UPC-E Barcode Generator Overview

VB.NET UPC-E Barcode Generator is a mature linear barcode generation component designed for VB.NET developers who are necessary of adding the UPC-E barcode printing functions into their .NET projects. It is compatible with the .NET 2.0, 3.0, 3.5, 4.0 and is able to create UPC-E barcodes in ASP.NET Web projects, .NET WinForms apps as well as .NET reporting services (SSRS) projects using the Visual Basic .NET. It is simple to encode valid digits into the UPC-E barcode symbology by Visual Basic .NET.

How to generate, print barcode using .NET, Java sdk library control with example project source code free download:

OnBarcode.com also provides more details about how to set UPC-E barcode size and image in Barcode Generator Control on VB.NET:


Encode data into UPC-E Image via VB.NET

UPC-E Valid Character Set

The UPC-E barcode, also known as Universal Product Code version E, GTIN-12 with lead 0, GS1-12, UCC-12, is often used on products with a small labeling field that a full UPC-A barcode, whose image size is larger than the labeling field, is not suitable. The UPC-E barcode symbol is compressed from the UPC-A barcode symbology. It compresses out extra zeros of the UPC-A, and has about half size as the later one.

An UPC-E symbol is a fixed length barcode and only encodes 6 digits. UPC-E barcode only encodes numeric characters from 0 through 9:

UPC-E Character Set: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.

UPC-E data encoding using VB.NET

Sample for UPC-E data encoding using VB.NET

Dim barcode As Linear = New Linear

barcode.Type = BarcodeType.UPCE

barcode.Data = "123456"

barcode.UPCENumber = 3

barcode.UOM = UnitOfMeasure.PIXEL

barcode.X = 1

barcode.Y = 80

barcode.LeftMargin = 0

barcode.RightMargin = 0

barcode.TopMargin = 0

barcode.BottomMargin = 0

barcode.Resolution = 96

barcode.Rotate = Rotate.Rotate0

UPC-E Barcode Symbol Components

After encoding the data string "123456" into an UPC-E symbol, it looks like the following image:

An UPC-E barcode symbology is made up of three fields from the left to right:

1. System number, a single digit at the left side of the UPC-E symbol. The first digit "0" in the above UPC-E image

2. Manufacturer code & Product code, the digits "123456" in the above UPC-E image. In UPC-E barcode symbol, the encoded six digits, converted from the five digits of manufacturer code and the five digits of product code in UPC-A, represents the manufacturer code and product code.

3. Check digit, the last digit. Numeric "5" in the above image

OnBarcode is a market-leading provider of barcode imaging generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.