BizCode Barcode Generator for ASP.NET
The most professional barcode solutions for Microsoft ASP.NET
Quick Overviews
  • Barcode creating class library
  • Support ASP.NET IDEs & IIS
  • Easy to use & integrate
  • Dynamic barcodes support
  • High-usability controls provided
How to Set UPC-A Size in ASP.NET
With .NET UPC-A Barcode Generator for ASP.NET, UPC-A creation can be an easy task. Users may easily integrate UPC-A creation control into you ASP.NET web prpjects without using barcode font. UPC-A supplemental 2 & 5 digits add-on are also supports for UPC-A symbols. More information, please go to:
UPC-A Size Related Properties

Supplementary Barcode

Barcode Generator for ASP.NET provides SupplementCode, SupplementSpace and SupplementHeight class for users, if they want to add supplementary 2 & 5 digits for UPC-A barcode with specified size.

Barcode Resolution

Barcode Generator for ASP.NET provides Resolution class for users, if they want to set the PC-A barcode sizes resolution in DPI which specifies the number of dots that a printer or device (like a monitor) can display per linear inch; the higher the Dpi, the higher the resolution.

Barcode Unit

Barcode Generator for ASP.NET provides BarcodeUnit class for users, if they want to choose Pixel, Inch or Cm as the unit measurement for UPC-A barcode size.

Quiet Margin

Barcode Generator for ASP.NET provides QuietMargin class for users, if they want to adjust quiet margins of top, bottom, right and left surrounding generate UPC-A barcode sizes.

Bar Width & Height

Barcode Generator for ASP.NET provides BarWidth and BarHeight class for users, if they want to adjust generated UPC-A barcode symbol size through controlling the width and height of each bar.

Barcode Width & Height

Barcode Generator for ASP.NET provides BarcodeWidth and BarcodeHeight class for users to, if they want to control the width and height of the whole UPC-A barcode size, including barcode symbol size, encoded characters and quiet margins.
Customize UPC-A Barcode Sizes in ASP.NET & IIS
Be sure that you have installed those following programs onto your computers:
  • Microsoft .NET Framework 2.0/3.0/4.0
  • Microsoft Visual Studio 2005/2008/2010 (Express, Professional & Standard Edition)
  • Microsoft Internet Information Service (IIS)
  • Barcode Generator for ASP.NET installed
Customize UPC-A Barcode Images in ASP.NET Web Forms Using BarcodeControl
  1. Add ASP.NE Barcode Control onto your .NET Visual Studio Toolbox;
  2. Drag and drop the WebLinearBarcode control into the Forms;
  3. Run the website and you will see a barcode size generated;
  4. Go to Address bar and change your URL with following one:
    http://localhost/br_barcode/linear.aspx?code=0123456789&symbology=37&supplement-code=94798&supplement-space=36&supplement-height=0.2&bar-width=3&bar-height=75&barcode-width=450&barcode-height=100&top-margin=2&bottom-margin=2&right-margin=5&left-margin=5;
  5. Then a UPC-A with customized size occurs.
Customize UPC-A Barcode Sizes in ASP.NET Using C#, VB.NET Class
using BusinessRefinery.Barcode;

Linear barcode = new Linear();

// Add Supplementary 5-digit barcode barcode for UPC-A barcode
barcode.Symbology = Symbology.UPCA_5;
barcode.SupplementCode = "12578"

// Change UPC-A barcode unit measuirement in Pixel, Inch and Cm
barcode.BarcodeUnit = BarcodeUnit.PIXEL

// Manage Supplementary 5-digit barcode bar height and the space
barcode.SupplementHeight = 0.4;
barcode.SupplementSpace = 20;

// Specify UPC-A barcode width & height
barcode.BarcodeHeight = 100;
barcode.BarcodeWidth = 500;

barcode.BarHeight = 75;
barcode.BarWidth = 3;
// Change UPC-A resolution in DPI
barcode.Resolution = 104;

// Control UPC-A barcode top margin, bottom margin, right margin and
left margin size

barcode.BottomMargin = 7;
barcode.TopMargin = 7;
barcode.LeftMargin = 5;
barcode.RightMargin = 5;
barcode.drawBarcode2SizeFile("c:/upc-a-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()

' Add Supplementary 5-digit barcode barcode for UPC-A barcode
barcode.Symbology = BusinessRefinery.Barcode.Symbology.UPCA_5
barcode.Code = "0123456789"
barcode.SupplementCode = "12578"

' Change UPC-A barcode unit measuirement in Pixel, Inch and Cm
barcode.BarcodeUnit = BarcodeUnit.PIXEL

' Manage Supplementary 5-digit barcode bar height and the space
barcode.SupplementHeight = 0.4;
barcode.SupplementSpace = 20;

' Specify UPC-A barcode width & height
barcode.BarcodeHeight = 100
barcode.BarcodeWidth = 500

barcode.BarHeight = 75
barcode.BarWidth = 3

' Change UPC-A resolution in DPI
barcode.Resolution = 104;

' Control UPC-A barcode top margin, bottom margin, right margin and
left margin size

barcode.BottomMargin = 7
barcode.TopMargin = 7
barcode.LeftMargin = 5
barcode.RightMargin = 5
barcode.drawBarcode2SizeFile("c:/upc-a-vb-net.gif")
Customize Code Barcode Sizes in Internet Information Service (IIS)
  1. Download Barcode Generator for ASP.NET and unzip;
  2. Copy the whole barcode fold and contents into IIS and create a new virtual directory called "br_barcode";
  3. Restart IIS, navigate to
    http://localhost/br_barcode/linear.aspx?code=0123456789&symbology=37&supplement-code=94798&supplement-space=36&supplement-height=0.2&bar-width=3&bar-height=75&barcode-width=450&barcode-height=100&top-margin=2&bottom-margin=2&right-margin=5&left-margin=5;
  4. Then a UPC-A with customized size occurs.