Our Customers
Contact Us Email: support@barcodelib.com
Home > ASP.NET Barcode > ASP.NET Barcode Creation Guide > ASP.NET UPC-A Linear Barcode Creation Library
Download Barcode for ASP.NET Trial

UPC-A Generator for ASP.NET Web

UPC-A Barcode Generation Tutorial in ASP.NET Web Applications & IIS
  • Certainly be compatible with .NET 2.0 and later versions
  • Easy to generate and stream UCP-A barcode images in ASP.NET applications and IIS
  • Generate high-quality UPC-A barcodes in Crystal & RDLC Reports
  • Generate UCP-A barcode images using C# and VB .NET programming languages
  • Generate highly readable barcode images in Jpeg, Gif, Png, Bmp & Tiff formats
  • Advanced and competitive ASP.NET barcode generator SDK appreciated by developers worldwide
  • Feel free to choose from royalty-free developer licenses for different commercial purposes
Features of ASP.NET UPC-A Barcode Images
UPC-A barcode is widely applied to retail for tracking trade items in stores in North America, UK, Australia and New Zealand etc. It is also known as Universal Product Code version A, UPC-A Supplement 5/Five-digit Add-On, UPC-A Supplement 2/Two-digit Add-On.
It is able to encode ten characters (0, 1, 2, 3, 4, 5, 6, 7, 8 & 9).
UPC-A barcode symbols may be accompanied by an Add-On symbol (with different digits).
Generate UPC-A Barcode with Controller in ASP .NET Web Forms
  1. Add BarcodeLib.Barcode.ASP.NET.dll to your Visual Studio Toolbox and you will see four items (LinearASPNET, QRCodeASPNET, PDF417ASPNET & DataMatrixASPNET).
  2. Go to the unzipped trial package to find "barcode" folder and copy "linear.aspx" and "linear.aspx.cs" to the project you have created.
  3. Drag and drop LinearASPNET to the aspx page where your UPC-A barcode image will be generated.
  4. Choose your barcode type (under Type item) and other barcode settings through Properties window.
    These properties of UPC-A barcode image can be set in the application: Type, Data, SData, Size (UOM, ImageWidth, ImageHeight, BarWidth, BarHeight,LeftMargin, RightMargin, TopMargin and BottomMargin, ResizeImage and Resolution).
  5. Run the project and you will see the generated UPC-A barcode image.
Generate UPC-A Barcode Images in C# & VB.NET and IIS

Generate C# & VB.NET UPC-A barcodes

Add reference (BarcodeLib.Barcode.ASP.NET.dll) to your .NET project and implement encoding.
Here is an example for C# UPC-A barcode generation:
     BarcodeLib.Barcode.Linear upcabarcode = new BarcodeLib.Barcode.Linear(); 
upcabarcode.Type = BarcodeType.UPCA;
upcabarcode.Data = "01234567891";

upcabarcode.UOM =UnitOfMeasure.CM;
upcabarcode.BarWidth =0.1f;
upcabarcode.BarHeight =2.5f;
upcabarcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif;

// Save UPC-A barcode image into your system
upcabarcode.drawBarcode ("c:/upcabarcode.gif");
     Dim upcabarcode As New BarcodeLib.Barcode.Linear()
upcabarcode.Type = BarcodeType.UPCA
upcabarcode.Data = "01234567891"

upcabarcode.UOM =UnitOfMeasure.CM
upcabarcode.BarWidth =0.1F
upcabarcode.BarHeight =2.5F
upcabarcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif

'Save UPC-A barcode image into your system
upcabarcode.drawBarcode ("c:/upcabarcode.gif")

Generate UPC-A barcodes in IIS

  1. Download and unzip the trial package.
  2. Copy barcode folder in the unzipped file to your IIS folder.
  3. Create a new virtual directory "barcode" and link it to the barcode folder.
  4. Restart your IIS and navigate to:
All Supported ASP.NET Barcode Symbologies
Support Linear Barcodes:
Support Matrix Barcodes:
2D Barcodes Include: Data Matrix, PDF 417, QR Code.

Other Related Barcode Generation Articles

ASP.NET C# & VB.NET Barcode Generation Guide