Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode > VB.NET Barcode Generation Guide > VB.NET UPC-A Barcode Generation Component Turorial
Download Barcode for .NET Suite Trial

VB.NET UPC-A Barcoding Generator Library

Guidance for UPC-A Barcode Generation Component in VB.NET Class
  • High-quality VB.NET UPC-A barcode generation dll package with competitive price
  • Offer useful & professional help for 1000+ VB.NET developers since 2003
  • Generate UPC-A barcodes in Console applications & ASP.NET web services
  • Create UPC-A barcodes in Reporting Services & Crystal Reports & RDLC Reports
  • Draw industry standard UPC-A and output barcodes to image files or memory
  • Support other common linear & 2D barcodes like Code 128, EAN-13, and PDF-417
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
  1. In the Solution Explorer, right click "Add Reference..." to add Barcodelib.Barcode.ASP.NET.dll or Barcodelib.Barcode.WinForms.dll to your project.
  2. In Toolbox, right click "Choose Item..." to add Barcodelib.Barcode.ASP.NET.dll or Barcodelib.Barcode.WinForms.dll to the Toolbox.
  3. You could generate an UPC-A barcode with following sample VB codes.
      Dim upc_a As New BarcodeLib.Barcode.Linear()
upc_a.Type = BarcodeType.UPCA
upc_a.Data = "12345678901"

upc_a.BarColor = System.Drawing.Color.Blue
upc_a.BarWidth = 1
upc_a.LeftMargin = 8
upc_a.RightMargin = 8

' More UPC-A barcode settings here, like image format, font, data text style etc.

' Save barcode image into your system
upc_a.drawBarcode("c:/upca.gif")

' Encode UPC-A barcode & output to byte array
byte[] barcodeInBytes = upc_a.drawBarcodeAsBytes()

' Draw UPC-A barcode to Graphics object
Graphics graphics = ...
upc_a.drawBarcode(graphics)

' 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.
  1. Embed Barcodelib.Barcode.ASP.NET.dll to your project.
  2. Embed Barcodelib.Barcode.ASP.NET.dll to your Toolbox.
  3. Copy files "linear.aspx" & "linear.aspx.cs" from the folder "barcode" in the trial package to your web program folder.
  4. Drag "LinearASPNET" from the Toolbox and drop it on the split part of your aspx page.
  5. 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
  1. Add BarcodeLib.Barcode.WinForms.dll to your web program.
  2. Add BarcodeLib.Barcode.WinForms.dll to your Toolbox.
  3. 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.
Barcodes Supported by UPC-A VB.NET Barcoding Control
VB.NET Linear Barcodes:
VB.NET Matrix Barcodes:
Suitable Linear Barcodes in VB.NET Class: Codabar, Code 11, Code 2 of 5, Code 39, Code 93, Code 128, EAN 8, EAN 13, EAN 128, Interleaved 2 of 5, ITF14 (UPC Shipping Container Symbol), MSI Plessey, OneCode, Planet, Postnet, RM4SCC (British Royal Mail 4-State Customer Barcode), UPC-A, UPC-E.
Suitable 2D Barcodes in VB.NET Class: Data Matrix, PDF417, QR Code.





Provides High Quality Barcode .NET Control, Barcode ASP.NET Control, Barcode C# Control, Barcode VB.NET Control, Barcode WinForms Control, UPC-A C#.NET Control, UPC-A VB.NET Control, UPC-A .NET Control, UPC-A ASP.NET Control, UPC-A .NET WinForms Control, .NET SSRS, Crystal Reports, RDLC UPC-A Barcode Generation Components.