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 QR Code Size in ASP.NET
QR-Code Barcode Generator for ASP.NET is a high valued barcode control for ASP.NET, which supports generating 30+ 1D (linear) & 2D (matrix) barcode symbology types in various ASP.NET development environment, including ASP.NET web forms, IIS, Crystal Report for ASP.NET and SSRS for ASP.NET.
This product requires minimum QR-Code and provides a set of QR-Code generation guide for you; please see:
QR Code Size Related Properties

QR Code Version

Barcode Generator for ASP.NET provides Version class for users, if they want to QR Code version from 21x21 to 177x177.

QR Code ECL

Barcode Generator for ASP.NET provides ECL class for users, if they want to create QR Code with four different levels of error corrections: L, M, H, and Q; the higher the ECL, the larger QR Code size.

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 QR Code 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 QR Code barcode images.

Module Size

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

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 QR Code barcode size, including barcode symbol image, encoded characters and quiet margins.
Customize QR Code Barcode Size 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 QR Code Barcode Size 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/qrcode.aspx?code=012345&version=8&ecl=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 QR Code with customized size occurs.
Customize QR Code Barcode Size in ASP.NET Using C#, VB.NET Class
using BusinessRefinery.Barcode;

QRCode Barcode = new QRCode();
barcode.Code = "123456789";

// Change QR Code barcode unit measuirement in Pixel, Inch and Cm
barcode.BarcodeUnit = BarcodeUnit.PIXEL;

// Choose 40 differernt versions for QR Code barcode
Barcode.Version = QRCodeVersion.V1;

// Select QR Code Error Correction Level
Barcode.ECL = QRCodeECL.H;

// Specify QR Code barcode width & height
barcode.BarcodeHeight = 100;
barcode.BarcodeWidth = 500;

// Specify the width & height of module in QR Code
barcode.ModuleSize= 3;

// Control QR Code 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:/qr-code-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.QRCode = 
New BusinessRefinery.Barcode.QRCode()
barcode.Code = "0123456789"

' Change QR Code barcode unit measuirement in Pixel, Inch and Cm
barcode.BarcodeUnit = BarcodeUnit.PIXEL

' Choose 40 differernt versions for QR Code barcode
Barcode.Version = QRCodeVersion.V1

' Select QR Code Error Correction Level
Barcode.ECL = QRCodeECL.H

' Specify QR Code barcode width & height
barcode.BarcodeHeight = 100
barcode.BarcodeWidth = 500

' Specify the width & height of module in QR Code
barcode.ModuleSize= 3

' Control QR Code 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:/qr-code-vb-net.gif")
Customize QR Code Barcode Size 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/qrcode.aspx?code=012345&version=8&ecl=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 QR Code with customized size occurs.