This section provides an overview of generating UPC-A barcodes using the BarcodeLib SDK within VB.NET. UPC-A (Universal Product Code version A), also referred to as UPC Code, UPC Symbol, GTIN-12, GS1-12, or UCC-12, is the most widely recognized linear barcode symbology in the United States for retail point of sale applications. The BarcodeLib VB.NET UPC-A Generator is designed for straightforward integration into Windows Forms (WinForms) and Windows Presentation Foundation (WPF) desktop applications, as well as class libraries and console projects.
Brief Introduction for VB.NET UPC-A Barcode Type
UPC-A, the most well-known linear barcode in America, has been used in almost every daily product, like books, food and clothes. This 12-character numeric barcode can encode information of number system, manufacturer code, product code and check digit.
Instructions on UPC-A Barcode Generation with VB.NET Class
In the Solution Explorer, right click "Add Reference..." to add Barcodelib.Barcode.ASP.NET.dll or Barcodelib.Barcode.WinForms.dll to your project.
In Toolbox, right click "Choose Item..." to add Barcodelib.Barcode.ASP.NET.dll or Barcodelib.Barcode.WinForms.dll to the Toolbox.
You could generate an UPC-A barcode with following sample VB codes.
Dim upc_a AsNew BarcodeLib.Barcode.Linear() upc_a.Type = BarcodeType.UPCA upc_a.Data = "12345678901"
' Create UPC-A barcode and output to HttpResponse object HttpResponse response = ... upc_a.drawBarcode(response)
' Encode UPC-A barcode and save to Stream object Stream stream = ... upc_a.drawBarcode(stream)
Above Free UPC-A sample codes are written in Visual VB 2005
Instructions on UPC-A Images Generation in VB.NET ASP.NET Web Projects
To create UPC-A linear barcodes in ASP.NET, you are supposed to do as section two firstly.
Embed Barcodelib.Barcode.ASP.NET.dll to your project.
Embed Barcodelib.Barcode.ASP.NET.dll to your Toolbox.
Copy files "linear.aspx" & "linear.aspx.cs" from the folder "barcode" in the trial package to your web program folder.
Drag "LinearASPNET" from the Toolbox and drop it on the split part of your aspx page.
Click the produced barcode image and change barcode type to UPC-A in the Properties Window or generate an UPC-A barcode with above Sample Code for VB UPC-A Generation.
Instructions on UPC-A Barcodes Creation in VB.NET WinForms Software
Add BarcodeLib.Barcode.WinForms.dll to your web program.
Add BarcodeLib.Barcode.WinForms.dll to your Toolbox.
Drag LinearWinForm to your windows form and adjust its type to UPC-A in Properties Window or create an UPC-A barcode with above Sample Code for VB UPC-A Generation.
Summary
This guide has provided a comprehensive walkthrough for generating UPC-A barcodes using the BarcodeLib SDK in VB.NET, covering basic generation, support for add on symbols, and configuration of dimensions and text appearance. These features are well suited for integration into Windows Forms (WinForms) and Windows Presentation Foundation (WPF) desktop applications, enabling developers to incorporate retail standard barcode generation into their .NET projects. The included code example and list of supported symbologies serve as a practical reference for implementing UPC-A barcodes across a variety of VB.NET application types.
Barcodes Supported by UPC-A VB.NET Barcoding Control