Our Customers
Contact Us Email: support@barcodelib.com
Home > ASP.NET Barcode > ASP.NET Barcode Generation Guide > QR Code Barcode Generation Guide in ASP.NET
Download Barcode for ASP.NET Trial

ASP.NET QR Code Barcode Generator

How to Create QR-Code Barcodes in ASP.NET web applications / website & IIS
  • Professional ASP.NET Barcode Generator for QR Code barcode
  • Built in C# with full support for .NET development environment like Visual Studio
  • Streaming high-quality QR Code bar codes in ASP.NET web site
  • Easy to generate QR code images in Microsoft IIS within a few steps
  • Programmatically create QR-Codes in ASP.NET with C#, VB.NET Class Library
  • Creating best QR Code images in Jpeg, Gif, Bmp, Png image formats and save locally
  • Flexible QR Code settings to allow control over barcode size (shape), color, resolution, rotation
  • Perpetually royalty-free developer license available
ASP.NET QR Code Barcode Introduction
QR-Code is a matrix / 2D (two-dimensional) symbology developed by Denso Wave. It is also known as Quick Response Code, Denso Barcode, QRCode, JIS X 0510, ISO/IEC 18004.
Compatibility: Barcode for ASP.NET control dll is compatible with ISO/IEC 18004 (Second Edition 2006-09-01) bar code symbology specification for QR Code printing. Thus QR Code images generated are readable for all scanners / barcode recognition tools.
Encoding: QR-Code bar code is widely used for its versatility in data encoding, which include: numeric and alphanumeric characters (A-Z, a-z, 0-9), Kanji characters (JIS X 0510), and byte data (default is ISO/IEC 8859-1).
QR Code bar code can encode multiple types of data, including numeric and alphanumeric characters (A-Z, a-z, 0-9), Kanji characters (JIS X 0510), and byte data (default is ISO/IEC 8859-1, including characters from English, German, French, Italian, Spanish, Portuguese, etc.)
To know more, please refer to .NET QR-Code Introduction.
How to Install QR-Code ASP.NET Bar Code Generator Library?
  1. Add barcode dll component to your ASP.NET project reference.
    • Click "Add Reference..." in "Solution Explorer".
    • Click "Browse" to find Barcodelib.Barcode.ASP.NET.dll in the unzipped file, and click "OK" button.
  2. Add ASP.NET barcoding control to Visual Studio Toolbox.
    • Right click in Toolbox and select "Choose Items...".
    • In the pop-up window, click "Browse..." to locate the dll Barcodelib.Barcode.ASP.NET.dll.
    • Click "OK" and now four items are listed in VS Toolbox: QRCodeASPNET, DataMatrixASPNET, LinearASPNET, and PDF417ASPNET.

How to Stream QR-Code Bar Codes in ASP.NET Web Applications?
BarcodeLib QR Code ASP.NET generator supports streaming QR-Code images in ASP.NET in two ways.
  1. Create QR Code through Buildin ASP.NET Barcode Application.
    • Download & unzip the trial, and copy barcode folder and its contents to your IIS folder, eg. C:\inetpub
    • Create a new virtual directory in your IIS named "barcode", and connect it to the above "barcode" folder pasted in inetpub.
    • Restart your Microsoft IIS and navigate to: http://YourDomain:Port/barcode/qrcode.aspx?Data=0123456789&ModuleSize=3&LeftMargin=12&RightMargin=12&TopMargin=12&BottomMargin=12
      Here is the generated QR Code barcode image:

      To make further adjustment for the QR Code image, please view web stream URL parameters for QR Code here: .NET QR-Code Generator Property Settings
    • If you want to insert this QR Code image in your aspx or html page, please pass the url to IMG tag or src value.
      <img src=http://YourDomain:Port/barcode/qrcode.aspx?Data=0123456789&ModuleSize=3&LeftMargin=12&RightMargin=12&TopMargin=12&BottomMargin=12 />
      This method will not generate any barcode images in your IIS server side.
  2. Create QR Code through ASP.NET web form controller.
    • Intall ASP.NET barcode controller to your .NET project by adding reference.
    • Add barcode library to your Visual Studio toolbox.
    • Open barcode in your unzipped trial package, and copy files "qrcode.aspx", "qrcode.aspx.cs" to the aspx page where you will be generating QR Code images.
    • Now drag QRCodeASPNET to your ASP.NET web site, and change QR code settings if necessary in the Properties window.
    • Run the project to view the generated QR Code barcode on your aspx page.
How to Generate QR-Code Bar Code in ASP.NET using C#, VB.NET Class?
Given below are the C# and VB.NET sample code for QR Code printing in .NET class library. When installation is done, you can copy the demo code to your project for a barcoding test.
     BarcodeLib.Barcode.QRCode qrbarcode = new BarcodeLib.Barcode.QRCode(); 
qrbarcode.Encoding = BarcodeLib.Barcode.QRCodeEncoding.Auto;
qrbarcode.Data = "336699885522";

qrbarcode.ModuleSize = 2;
qrbarcode.LeftMargin = 8;
qrbarcode.RightMargin = 8;
qrbarcode.TopMargin = 8;
qrbarcode.BottomMargin = 8;
qrbarcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif;

// Save QR Code barcode image into your system
qrbarcode.drawBarcode("c:/csharp-qrcode.gif");
Above QR code sample code is coded in Visual C# 2005 View More QR Code C#.NET Sample Code
     Dim qrbarcode As BarcodeLib.Barcode.QRCode
qrbarcode = New BarcodeLib.Barcode.QRCode()
qrbarcode.Data = "111110000"

qrbarcode.ModuleSize = 3
qrbarcode.LeftMargin = 12
qrbarcode.RightMargin = 12
qrbarcode.TopMargin = 12
qrbarcode.BottomMargin = 12
qrbarcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png

' save barcode image into your system
qrbarcode.drawBarcode("c:/vbnet-qrcode.png")
Above qr code sample code is coded in Visual Basic View More QR Code VB.NET Sample Code
ASP.NET Linear & 2D Barcode Generator Supported Symbologies
Support Linear Barcodes:
Support Matrix Barcodes:
ASP.NET Barcode Library Generates 1D (Linear) Barcode Symbologies: Codabar, Code 11, Code 2 of 5, Code 39, Code 93, Code 128, EAN 8, EAN 13, GS1-128/EAN-128, Interleaved 2 of 5, ITF14 (UPC Shipping Container Symbol), MSI Plessey, Onecode, Planet, Postnet, RM4SCC (British Royal Mail 4-State Customer Barcode), UPC-A, UPC-E.
ASP.NET Barcode Library Generates 2D (Matrix) Barcode Symbologies: Data Matrix, PDF 417, QR Code.



Other Related Barcode Generation Articles

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