.NET Barcode Generator
for WinFroms Application in C#.NET
Winforms .NET Barcode Generation DLL
Barcode .NET WinForms > Barcode in .NET WinForms > UPC-A
Linear Barcode in .NET WinForms
Code 39 in C#
Code 128 in C#
EAN-13 in C#
EAN 128 in C#
UPC-A in C#
UPC-A .NET Barcode Generator for C#.NET Class Library
C#.NET Generator to Create UPC-A Barcode Symbology using C# Programming
UPC-A Barcode Generator/Library in C#.NET - Overview
Winforms .NET barcode generator for UPC-A is completely built in C#.NET. UPC-A barcode library SDK enables barcoding capability into Visual C# .NET projects in Windows Forms projects. Optional source code and royalty-free perpetual developer licenses and are available in Aspper UPC-A barcode generator.
UPC-A generator provides easy-to-configure assistant tool which lets you easily inserting dynamic barcodes into .NET Framework Applications. Parameters of barcode are allowed to be adjusted according to requirement. This barcode control supports barcode generation of UPC-A and 2 or 5 supplemental digits add-on.
Aspper.com helps .NET programmers to create and print dynamic linear and matrix barcodes in Windows Forms applications using C# barcode class library.

Linear barcodes: Code 128, EAN-13, GS1-128,Code 39

2D barcodes: Data Matrix,PDF-417,QR Code
UPC-A Barcode Generator for C#.NET Class Library - Benefits
UPC-A Barcode Generator/Library for .NET Applications
Aspper.com provides complete information of User Guide for Visual C#solution to generate dynamic UPC-A barcodes into .NET applications and report solution.
How to Create UPC-A Barcodes on C#.NET Application

Generate and Draw UPC-A 1D Barcodes in C#.NET Classes

  1. Download the UPC-A barcode generation SDK folder and unzip it. Copy the barcode generation dll to your C#.NET project folder.
  2. Open your project in Visual Studio; add UPC-A barcode generation dll to project reference.
  3. Right click the form, choose (view code) in the list. Barcodes could be created easily by adding C# code.
// Create linear barcode object
upca = new BarCode();
// Barcode symbology type setting
upca.Type = Symbology.UPCA
//Encoding data setting
upca.Data = "0123456789"
// Draw & print generated barcode to png image file
upca.drawBarcode("csharp-upca.png")
UPC-A basic property setting
//Encoding data setting
upca.Data = "012345678911";
// Barcode type setting
upca.Symbology = Symbology.UPCA;
UPC-A, 2-digit and 5-digit add-on valid value:
Symbology.UPCA
Symbology.UPCASup2
Symbology.UPCASup5
// Unit of measure setting.
upca.UOM = UnitOfMeasure.PIXEL;
// Set the bar module width (X), default is 2 pixel;
upca.X = 2;
// Set the bar module height (Y), default is 75 pixel;
upca.Y = 75;
// Set left, right, top, bottom margins of barcode images. Defaults are 0.
upca. MarginLeft = 0;
upca. MarginRight = 0;
upca. MarginTop = 0;
upca. MarginBottom = 0;
// Image resolution setting, default is 72 dpi.
upca.Resolution = 72;
// Barcode orientation setting: 0, 90, 180, 270 degrees
upca. Angle = Angle. Degree0;
// If true, apply checksum digit characters in the input data. Default is false.
upca.AddCheckSum = true;
Text setting for UPC-A with C#.NET
// If true, display the human readable text under the barcode
upca.ShowText = true;
// If true, display the checksum digit
upca. ShowCheckSum Char = true;
// Text font setting
upca.TextFont = new Font ("Arial", 9f, FontStyle.Regular);
// Set the space between barcode and text. Default is 6 pixel.
upca.TextMargin = 6;
Format setting for UPC-A with C#.NET
// Generate UPC-A and encode barcode to gif format
upca.Format = ImageFormat.Gif;
upca.drawBarcode("C:\\barcodeimages\\upca.gif");
Color setting for UPC-A with C#.NET
// Background color setting, Default is white.
upca. BackgroundColor = white;
// Foreground color setting, Default is black.
upca. ForegroundColor = black;
Special Setting of UPC-A
// Supplement data setting. Valid values are 2 or 5 digits
upca. SupData = "";
// Height of the bar module setting. Default is 0.8 (80% of Y - bar module height).
upca. SupHeight = 0.8f;
// Set the separation between the barcode and the supplement. Default is 15 pixel.
upca. SupSpace = 15;

Drag and Drop UPC-A Linear Barcodes to C#.NET Form

  1. Download the UPC-A barcode generation SDK and unzip it. Copy the generation dll to your C#.NET project folder.
  2. Open your C#.NET project in Visual Studio after the installation.
  3. Right click Toolbox in Visual Studio then click (Choose Item) button. Click button (Browse) in the Choose Toolbox Items dialog.
  4. Find the C#.NET barcode dll, and then click (OK) button.
  5. The barcode items will be displayed in the (Component) section of the Tools Palette.
  6. Drag and drop the barcode control in the toolbox to your .NET Windows Form. Double click the barcode image in the forms.
  7. It is easy to generate barcode by using C# code.