VB.NET UPC-A Generator Data Encoding Tutorial

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

VB.NET UPC-A Barcode Generator Overview

VB.NET UPC-A Barcode Generator is a mature linear barcode generation component designed for VB.NET developers who are necessary of adding the UPC-A 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-A 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-A 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-A barcode size and image in Barcode Generator Control on VB.NET:


UPC-A Data Encoding in VB.NET

UPC-A Valid Character Set

The UPC-A barcode, also known as Universal Product Code version E, GTIN-12 with lead 0, GS1-12, UCC-12, is extensively used on consumer good in supermarket, books, magazines, and newspapers. It is a subset barcode symbol of UPC barcodes, which contain UPC-E, UPC Supplemental 2-digit add-on, and UPC Supplemental 5-digit add-on.

An UPC-A symbol is a fixed length barcode and only encodes 12 digits, which consists of 11 digits of message information and 1 check digit. UPC-A barcode only encodes numeric characters from 0 through 9:

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

Encode data into UPC-A using VB.NET

Sample for encoding data into UPC-A via VB.NET

Dim barcode As Linear = New Linear

barcode.Type = BarcodeType.UPCA

barcode.Data = "12345678901"

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-A Barcode Symbol Components

After encoding the data string "12345678901" into an UPC-A symbol, you will get a upca barcode which looks like the following image:

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

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

2. Manufacturer code, five digits assigned by the UCC Council to manufacturer or company. The digits "23456" in the above UPC-A image

3. Product code, five digits assigned by the manufacturer. The digit "78901" in the above image

4. Check digit, the last digit. Numeric "2" 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.