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 EAN-13 Size in ASP.NET
ASP.NET EAN-13 Barcode Generator Controlis able to create EAN-13, EAN-13+2 and EAN-13+5 barcodes in ASP.NET and Internet Information Service with customized barcode size, symbol image, color, etc.
This article explains how to resize EAN-13 barcode size in ASP.NET, IIS; other EAN-13 barcode related setting, please see:
EAN-13 Size Related Properties

EAN-2 & EAN-5

Barcode Generator for ASP.NET provides SupplementCode class for users, if they want to add EAN-2 or EAN-5 barcode for EAN-13 barcode.

Supplementary Barcode Space & Height

Barcode Generator for ASP.NET provides SupplementHeight and SupplementSpace class for users, if they want to adjust EAN-2 & EAN-5 bar height and the space between EAN-13 symbols and supplementary symbols.

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 EAN-13 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 EAN-13 barcode images.

Bar Width & Height

Barcode Generator for ASP.NET provides BarWidth and BarHeight class for users, if they want to adjust generated EAN-13 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 EAN-13 barcode size, including barcode symbol image, encoded characters and quiet margins.
Customize EAN-13 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 EAN-13 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 image generated;
  4. Go to Address bar and change your URL with following one:
    http://localhost/br_barcode/linear.aspx?code=012345678901&symbology=16&supplement-code=56&supplement-space=20&supplement-height=0.9&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 an EAN-13 with customized size occurs.
Customize EAN-13 Barcode Sizes in ASP.NET Using C#, VB.NET Class
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.EAN13;
barcode.Code = "012345678901";


// Change EAN-13 barcode unit measuirement in Pixel, Inch and Cm
barcode.BarcodeUnit = BarcodeUnit.PIXEL;

// Specify EAN-13 barcode width & height
barcode.BarcodeHeight = 100;
barcode.BarcodeWidth = 500;

barcode.BarHeight = 75;
barcode.BarWidth = 3;

// Control EAN-13 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:/ean-13-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()


barcode.Symbology = BusinessRefinery.Barcode.Symbology.EAN13
barcode.Code = "0123456789"

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


' Specify EAN-13 barcode width & height
barcode.BarcodeHeight = 100
barcode.BarcodeWidth = 500

barcode.BarHeight = 75
barcode.BarWidth = 3

' Control EAN-13 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:/ean-13-vb-net.gif")
Customize EAN-13 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=012345678901&symbology=16&supplement-code=56&supplement-space=20&supplement-height=0.9&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 an EAN-13 with customized size occurs.