.NET QR Code Generator Library
How to create, make, generate QR Code using C#, vb.net in asp.net mvc with free c# open source example code
Free C#, VB.NET example code to use .net qr code generator library in asp.net mvc, crystal reports, ssrs reports.
- 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.
- Download the evaluation package and unzip it.
- Simply create a new ASP.NET project and copy "barcode.aspx" and "barcode.aspx.cs" to the project.
- Add "KeepAutomation.Barcode.Web.dll" to your project reference.
- Drag and drop "BarCodeControl" in Toolbox to the aspx page where your QR Code barcode image is to be generated.
- Select QR Code barcode type through the Properties panel.
- Run you ASP.NET web project to generate your QR Code barcode image.
You can also generate QR Code barcode image in IIS.
- Copy the "barcode" folder and its contents in the downloaded and unzipped package to your IIS.
- Create a new virtual directory named "barcode" and then restart IIS.
- Restart your IIS and navigate to
"http://YourDomain:port/barcode/barcode.aspx?code-to-encode=qrcode&symbology=103" - 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"/> - 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.
- First of all, you need to create a WinForms project in your Visual Studio.
- Then, you should add reference (KeepAutomation.Barcode.Windows.dll) to your Visual Studio Toolbox.
- Next, you may drag and drop the BarCodeControl into the form.
- After that, you can switch to the Properties window and set "Symbology" property to "QRCode".
- 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
QR Code Barcode Creation in RDLC Reports
QR Code Barcode Creation in Reporting Services |