Home  >  ASP.NET Barcode Generator Components  >  How to Print Barcode in ASP.NET  >  UPC-A Barcode Generator for ASP.NET Web Application
ASP.NET UPC-A Barcode Generating Control
ASP.NET UPC-A Barcode Generating Control compiles UPC-A barcode generating & creating function into a single dll, which is used to encode, embed, or integrate upca barcode printing function into ASP.NET web templates using C# and VB.NET.
ASP.NET UPC-A Barcode Generator Control - Overview
UPC-A Barcode Generator component SDK for ASP.NET web application is a server-side control for ASP.NET Web Applications. This barcode generator is a single file that may be redistributed in your ASP.NET applications without any license keys or activation.
Related barcode generating solutions for creating UPC-A image:
Features - ASP.NET UPC-A Barcode Generator Control

ASP.NET UPC A Barcode Generator Technologies

Customize UPC-A Barcode Images Using ASP.NET Barcode Generating DLL

View more about UPC-A Barcode Properties of ASP.NET Barcode Generator Library
Developer Guide - ASP.NET UPC-A Barcoding Library

Guide to Generate & Create UPC-A Barcode in ASP.NET Web Controller

  1. Add KeepDynamic.BarCode.AspNet.dll from the file Library to your ASP.NET project
  2. Add KeepDynamic.BarCode.AspNet.dll to Visual Studio Toolbox (After which, you will see four new items, that is, BarCodeControl, QRCodeControl, DataMatrixControl & PDF417Control)
  3. Copy "linear.aspx", "linear.aspx.cs" from barcode folder in Documentation to your ASP.NET project
  4. Drag & drop BarCodeControl from the Toolbox to your ASP.NET project and a barcode image will be generated
  5. Click generated barcode image, change the value of SymbologyType to UPCA and adjust the value of CodeText to a 11-digit data in the Properties window
  6. Run the ASP.NET project to view generated UPC-A barcode images

Guide to Generate UPC-A Barcode in ASP.NET Class Applications

  1. Integrate KeepDynamic.BarCode.AspNet.dll from the file Library to your ASP.NET project by adding reference
  2. Copy following C# or VB.NET class code to generate & print UPC-A barcode images in ASP.NET web applications.
C# code for ASP.NET UPC-A barcode generation
// generate linear barcode object 
BarCode barcode = new BarCode();

// Set barcode type to upca
barcode.SymbologyType = SymbologyType.UPCA;

// Enter a 11-digit data string
barcode.CodeText = "12345678912";

// set size-related settings of UPC-A barcode image
// Set bar width of UPCA
barcode.X = 2;

// set EAN13 barcode image
barcode.BarCodeWidth = 250;
barcode.BarCodeHeight = 90;

// save generated barcode images to png image file using C#
barcode.drawBarcode("C://kdupca.png");
VB.NET code for ASP.NET UPC-A barcode generation
' generate linear barcode object 
Dim barcode As New BarCode()

' Set barcode type to upca
barcode.SymbologyType = SymbologyType.UPCA

' Enter a 11-digit data string
barcode.CodeText = "12345678912"

' set size-related settings of UPC-A barcode image
' Set bar width of UPCA
barcode.X = 2

' set EAN13 barcode image
barcode.BarCodeWidth = 250
barcode.BarCodeHeight = 90

' save generated barcode images to png image file using VB.NET
barcode.drawBarcode("C://kdupca.png")

Guide to Create & Draw UPC-A Barcode in IIS using ASP.NET Barcoding Control

  1. Download & unzip the trial package. Find folder barcode in the folder Documentation
  2. Copy above folder barcode to your IIS project, eg:C:\interpub
  3. Create a new virtual directory in your IIS named "barcode", and connect it to the above barcode folder in the C:\interpub
  4. Restart your Microsoft IIS and navigate to:
    http://YourDomain:Port/barcode/linear.aspx?symbology-type=36&code-text=36202102360&x=1&left-margin=10&right-margin=10
  5. You can also use the following image tag to generate a UPC-A barcode on your html or aspx pages.
    <img src="http://YourDomain:Port/barcode/linear.aspx?symbology-type=36&code-text=36202102360&x=1&left-margin=10&right-margin=10" />
Note: X refers to bar width and code-text refers to encodable characters.
How to Generate other Linear & 2D Barcode Types using ASP.NET Barcode Generating SDK