How to Generate QR Code in .NET Application

How to Generate QR Code Using Free Demo in ASP.NET, WinForms, C# & VB.NET Class
  • Mature and reliable matrix QR Code barcode control dll used world-wide
  • Fully integrate with Microsoft Visual Studio 2005/2008/2010 & .NET Framework versions
  • Accurate 2D QR Code generation dll compatible with ISO / IEC 18004 (2nd edition 2006-09-01)
  • Generate dynamic 2D QR Code in ASP.NET, .NET WinForms, IIS and Reporting Services
  • Draw and print QR Code barcode as graphic image without using barcode fonts
  • Support customizing generated QR Code barcodes using C# and VB.NET class
  • Royalty-free and perpetual licenses provided to this .NET Barcode Generator Suite
.NET QR Code Barcode Generator Overview
As a professional barcode generator control SDK library, KA.Barcode for .NET Suite includes complete and strong functionality for high-quality QR Code encoding and printing in types of .NET projects, such as ASP.NET web forms, windows applications, C#, VB.NET class, .NET console applications, Crystal Reports, RDLC Reports & SSRS. This page is a detailed guide that allows developers to know how to add high quality QR Code in .NET environment projects and resize barcode image.
2D QR Code Barcode Introduction
QR Code, also known as Denso Barcode, QRCode, Quick Response Code, JIS X 0510, ISO/IEC18004, is a kind of 2-D symbol which can be easily interpreted by scanner equipment. However, unlike other 1D or 2D barcode, QR code has higher reliabilities, higher speed scanning and smaller printout size.
Download QR Code Barcode Generator for .NET
The free trial package of KA.Barcode for .NET Suite contains three folders (barcode, Buy Now, Help and License) and the following eight dlls:
  • KeepAutomation.Barcode.Crystal.dll
  • KeepAutomation.Barcode.RDLC.dll
  • KeepAutomation.Barcode.SSRS2005.dll
  • KeepAutomation.Barcode.SSRS2005CRI.dll
  • KeepAutomation.Barcode.SSRS2008.dll
  • KeepAutomation.Barcode.SSRS2008CRI.dll
  • KeepAutomation.Barcode.Web.dll
  • KeepAutomation.Barcode.Windows.dll
You can use this trial version for an unlimited period of time on your computer. But it cannot be used for business applications for a "KA Barcode" watermark will appear on the resulting barcode randomly.
How to Generate QR Code Using C#.NET, VB.NET
You can generate QR Code barcode in .NET projects using C# or VB class by adding reference ("KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll") to your Visual Studio project and compiling the following C# and VB sample codes.
C# Sample code
     using KeepAutomation.Barcode.Bean;

BarCode qrcode = new BarCode();
qrcode.Symbology = KeepAutomation.Barcode.Symbology.QRCode;
qrcode.QRCodeVersion = KeepAutomation.Barcode.QRCodeVersion.V10;
qrcode.QRCodeECL = KeepAutomation.Barcode.QRCodeECL.M;
qrcode.CodeToEncode = "0123456789";
qrcode.X = 3;
qrcode.Y = 3;
qrcode.TopMargin = 12;
qrcode.BottomMargin = 12;
qrcode.LeftMargin = 12;
qrcode.RightMargin = 12;
qrcode.QRCodeDataMode = KeepAutomation.Barcode.QRCodeDataMode.Auto;
qrcode.generateBarcodeToImageFile("c://qrcode-csharp.png");

VB Sample code
     Dim qrcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

qrcode.Symbology = KeepAutomation.Barcode.Symbology.QRCode
qrcode.QRCodeVersion = KeepAutomation.Barcode.QRCodeVersion.V10
qrcode.QRCodeECL = KeepAutomation.Barcode.QRCodeECL.M
qrcode.CodeToEncode = "0123456789"
qrcode.X = 3
qrcode.Y = 3
qrcode.TopMargin = 12
qrcode.BottomMargin = 12
qrcode.LeftMargin = 12
qrcode.RightMargin = 12
qrcode.generateBarcodeToImageFile("c:/qrcode-vbnet.png")

How to Generate QR Code Barcode in ASP.NET Project
It is able to generate professional QR Code barcode in ASP.NET web forms with this .NET Barcode Generator.
  1. Download the evaluation package and unzip it.
  2. Simply create a new ASP.NET project and copy "barcode.aspx" and "barcode.aspx.cs" to the project.
  3. Add "KeepAutomation.Barcode.Web.dll" to your project reference.
  4. Drag and drop "BarCodeControl" in Toolbox to the aspx page where your QR Code barcode image is to be generated.
  5. Select QR Code barcode type through the Properties panel.
  6. Run you ASP.NET web project to generate your QR Code barcode image.
You can also generate QR Code barcode image in IIS.
  1. Copy the "barcode" folder and its contents in the downloaded and unzipped package to your IIS.
  2. Create a new virtual directory named "barcode" and then restart IIS.
  3. Restart your IIS and navigate to
    "http://YourDomain:port/barcode/barcode.aspx?code-to-encode=qrcode&symbology=103"
  4. Add the image tag into target pages to insert barcodes in html or aspx pages:
    <img src="http://YourDomain:port/barcode/barcode.aspx?code-to-encode=qrcode&symbology=103"/>
  5. You can also change settings of your created QR Code barcode image in the above url.
How to Generate QR Code Barcode in .NET WinForms
You can also insert QR Code barcode image into .NET Windows Forms.
  1. First of all, you need to create a WinForms project in your Visual Studio.
  2. Then, you should add reference (KeepAutomation.Barcode.Windows.dll) to your Visual Studio Toolbox.
  3. Next, you may drag and drop the BarCodeControl into the form.
  4. After that, you can switch to the Properties window and set "Symbology" property to "QRCode".
  5. Finally, you will see the generated QR Code barcode image.
How to Generate QR Code Barcode in .NET Reports

QR Code Barcode Creation in Crystal Reports
It is simple to create high-quality QR Code barcode image in Crystal Reports with detailed developer guide.
QR Code Barcode Creation in RDLC Reports
It is simple to create high-quality QR Code barcode image in RDLC Reports with detailed developer guide.
QR Code Barcode Creation in Reporting Services
It is simple to create high-quality QR Code barcode image in Reporting Services with detailed developer guide.
Free Trial DownloadC#/VB QR CodeFor Web QR CodeFor Windows QR CodeFor Reports QR CodeUsing C#Using VB.NETData Matrix for .NETPDF417 for .NETmoreCodabar for .NETCode 39 for .NETCode 128 for .NETEAN-8 for .NETEAN-13 for .NETEAN 128 for .NETIntelligent Mail for .NETInterleaved 2 of 5 for .NETISBN for .NETITF-14 for .NETRM4SCC for .NETUPC-A for .NETUPC-E for .NETmore
KeepAutomation provides complete barcode automation solutions for Business Application, Enterprise Developement Project, and mobile applications. We recommend the customers use high quality .net image viewer sdk, c# image viewer, vb.net image viewer, C# PDF document viewer, VB.NET PDF document viewer, C# Word document viewer, VB.NET Word document viewer, C# Tiff image viewer, VB.NET Tiff image viewer from RasterEdge.com.