How to Generate UPC-A in ASP.NET Library
UPC-A (a.k.a Universal Product Code version A) is the most common and well-known symbology in the United States, which is one member of UPC barcode. UPC-A barcode is fixed-length linear barcode that encodes numeric data only.
ASP.NET UPC-A Barcode Generator is an advanced class library for ASP.NET that enables you to generator, create UPC-A barcodes directly within your ASP.NET applications, including ASP.NET Web forms, ASP.NET Web Server, Crystal Reports for ASP.NET, SSRS for ASP.NET and Internet Information Service. It is also support UPC-A supplement 2-digit barcode and UPC-A supplement 5-digit barcode to be encoded in your ASP.NET applications.
Installing
ASP.NET UPC-A Barcode Generator DLL, users are able to generate and print high-quality UPC-A barcode images without any distortion. Besides, UPC-A barcode image can be set in any angle of 0, 90, 180, 270 degrees using this barcode generator.
This integration guide suggests how to use ASP.NET UPC-A Barcode Control in ASP.NET and Internet Information Service. You can get more specific tutorials here on
user manual for UPC-A data encoding,
user manual for UPC-A image setting, and
user manual for UPC-A size setting.
UPC-A Generator for ASP.NET Features
| Encodable Characters | Support to encode: - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 |
| Supplementary Barcode | Support to encode supplementary barcode EAN-2 & EAN-5 barcode for UPC-A barcodes |
| Barcode Specification | Support to generate & create accurate UPC-A barcodes according to GS1 General Specification (Version 8) |
| Flexible Size Option | Multiple options provided to adjust UPC-A barcode X, Y dimension, barcode width & height, quiet margin and supplementary barcode size etc. |
| Check Digit Calculation | Easy to calculated Mod 10 check digit for UPC-A barcode and show it on the image |
| Code Text | Easy to customize font style of human-readable text and display it under UPC-A barcodes |
UPC-A Generator for ASP.NET Requirements
Windows OS - Microsoft Windows 7 - Windows Server 2008 - Windows Vista - Windows Server 2003 - Windows XP | Development Environments - .NET 2.0/3.0/4.0 - C#, VB.NET, Managed C++, Borland Delphi    for.NET - Visual Studio 2005/2008/2010 - Internet Information Service (IIS) |
Install UPC-A Generator for ASP.NET
- Download BizCode Generator for ASP.NET and unzip;
- Add reference: Add "BusinessRefinery.Barcode.Web.dll" to your ASP.NET project reference;
- Add to toolbox: To add Barcode Control to your ASP.NET Web Forms toolbox;
How to Drag & Drop Barcode Control into ASP.NET projects?
- Install ASP.NET Barcode Control;
- Add ASP.NET Barcode Control onto your .NET Visual Studio Toolbox;
- Copy "linear.aspx" and "linear.aspx.cs" to the folder where your aspx pages are generating barcodes;
- Drag and drop the WebLinearBarcode control into the Forms;
- Run the website and you will see a barcode image generated;
- More UPC-A Setting see below.
How to Generate UPC-A with C#, VB.NET Class in ASP.NET?
Copy those following sample code to your ASP.NET project:
using BusinessRefinery.Barcode;
Linear barcode = new Linear();
barcode.Symbology = Symbology.UPCA;
barcode.Code = "01234567890";
barcode.Resolution = 104;
barcode.Rotate = Rotate.Rotate180;
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/upca-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear =
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.UPCA
barcode.Code = "01234567890"
barcode.Resolution = 104
barcode.Rotate = BusinessRefinery.Barcode.Rotate.Rotate270
barcode.Format = System.Drawing.Imaging.ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/upca-vb-net.gif")
How to Create Your Own UPC-A in IIS?
- Download BizCode Generator for ASP.NET and unzip;
- Copy the whole barcode fold and contents into IIS and create a new virtual directory called "br_barcode";
- Restart IIS, navigate to http://localhost/br_barcode/linear.aspx?code=01234567890&symbology=36;
- Add an image tag <img> into the web page to create UPC-A barcode image in html or aspx pages, e.g.
<img src="http://localhost/br_barcode/linear.aspx?code=01234567890&symbology=36"/>.