KA.Barcode Generator for .NET Suite
How to Create & Resize UPC-A in VB.NET
Complete VB.NET source code to generate, print UPC-A images using Barcode Generator for .NET Control
  • Perfectly work within .NET Framework 2.0/3.0/3.5/4.0
  • Support to print 2D barcode in ASP.NET as well, including ISBN .NET, ITF-14 Java, QR Code VB.NET
  • Generating, drawing UPC-A in VB.NET class, VB.NET Web, VB.NET Windows applications
  • Provide complete VB.NET source code for 1D barcode UPC-A generation & integration
  • Support creating, drawing UPC-A linear barcode with add-ons and adjust supplemental bar height and space
  • Easy UPC-A 1D bar codes creation and barcoding of the width of surrounding margins
  • Provide cm, inch, and pixel as the unit of measure to resize generarted, printout UPC-A images
  • Provide barcode SDK for implementing barcodes as you wish, like Code 128 Excel, C# Interleaved 2 of 5, ITF-14 Java, EAN-8 Word, etc.
  • Accurate UPC-A barcode generation compatible with GS1 standard
  • Reliable and mature UPC-A barcoding component SDK library used world-wide
UPC-A barcode creator for .NET Suiteprovides an easy way to create, develop GS1 compatible UPC-A, UPC-A Sup2 and UPC-ASup5 barcodes in VB.NET with resized barcode margin, adjusted supplemental bar height & space, flexible X, Y dimension, etc. This page is a tutorial with samples to resize UPC-A barcode image in VB.NET; you may find UPC-A barcode data and image related samples in:
UPC-A Barcode Structure
UPC-A

UPC-A barcode (a.k.a Universal Product Code version A) is constructed of:
  • Left Quiet Zone
  • The number System
  • The manufacturer code
  • The product code
  • The check digit
  • Right Quiet Zone
UPC-A Size Setting in VB.NET Class Library

Installation of UPC-A Barcode Generator Control into Projects

  1. 1.
  2. 2.
    Copy KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll to your VB.NET project folder
  3. 3.
    Open Microsoft Visual Studio, choose "Add Reference" in "Project"
  4. 4.
    Browse KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll
  5. 5.
    Now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references
Copy those following VB.NET UPC-A barcode programming syntax to produce, integrate a UPC-A:
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.Symbology= KeepAutomation.Barcode.Symbology. UPCA
barcode.CodeToEncode = "12345678901"
barcode.generateBarcodeToImageFile("C://barcode-upca-vbnet.gif")
Generation example; Completely compatible with Java SDK 1.4.2 ....
QR Code generation & barcoding in .NET projects, with which developers can easily integrate QR Code images in ASP.NET web forms, WinForms,...
How to Generate QR Code with ECI in .NET WinForms. ....
3. Open Microsoft Visual Studio, choose "Add Reference" in "Project". 4 ....
Numeric: digits 0 - 9. QR Code Generation in VB.NET. Install QR Code Barcode for .NET Suite into your .NET ....
NET is a fully integrated SDK library to generate, display scannable high-quality QR Code images in ASP.NET webform / website / web pages using ....
ASP.NET web pages, Windows applications, Crystal Reports, and VB.NET class library. Users may get more information about QR Code barcode data, size...
more>

Set UPC-A Barcode with BarcodeUnit Property

BarcodeUnit (URL: barcode-unit; Default: Pixel): it is the unit measurement for all size related settings in UPC-A barcodes. User may change it with "Pixel", "Inch" and "Cm". Replace sample code with following one:
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel
Symbology (URL: symbology; Default: Code128Auto): it is used for changing barcode types.

SupplementCode(URL: supplement-code; Default: ""): it is used for encoding supplementary data.

SupplementHeight (URL: supplement-height; Default: 0.8f): it is the height of bar in supplementary symbol EAN-2 or EAN-5.

SupplementSpace (URL: supplement-space; Default: 15): it is used for changing space between UPC-A symbol and supplementary symbol EAN-2 or EAN-5.

Replace sample code with following one:
barcode.Symbology = KeepAutomation.Barcode.Symbology.EAN13Sup2
barcode.SupplementCode = "12"
barcode.SupplementHeight = 0.7
barcode.SupplementSpace = 20

Set UPC-A with X and Y Property

X (URL: x; Default: 1): it is the width of the narrow bar in UPC-A barcodes

Y (URL: y; Default: 50): it is the height of bars in UPC-A barcodes.

Replace sample code with following one:
barcode.X = 3
barcode.Y = 75

Set UPC-A with BarCodeWidth and BarCodeHeight Property

BarCodeWidth (URL: barcode-width; Default: 0): it is the barcode width of UPC-A barcodes.

BarCodeHeight (URL: barcode-height; Default: 0): it is the barcode height of UPC-A barcodes.

Replace sample code with following one:
barcode.BarCodeWidth = 200
barcode.BarCodeHeight = 75

Set UPC-A with Quite Margin Property

TopMargin (URL: top-margin; Default: 0): it is the barcode image top margin in UPC-A barcodes.

BottomMargin (URL: bottom-margin; Default: 0): it is the barcode image bottom margin in UPC-A barcodes.

LeftMargin (URL: left-margin; Default: 0): it is the barcode image left margin in UPC-A barcodes.

RightMargin (URL: right-margin; Default: 0): it is the barcode image right margin in UPC-A barcodes.

Replace sample code with following one:
barcode.TopMargin = 8
barcode.BottomMargin = 8
barcode.LeftMargin = 6
barcode.RightMargin = 6