ASP.NET QR Code Generator Control
How to create, generate QR Code barcode image using c#, vb.net in asp.net mvc project with free ASP.NET open source demo code
- Mature ASP.NET Barcode Component DLL effectively runs on .NET 2.0, 3.0, 3.5 and above versions
- Compatible with latest ISO/IEC & GS1 specifications to ensure validity of generated QR Code barcode
- Support QR Code generation in ASP.NET and other main 2d barcodes (PDF-417 and Data Matrix)
- Easily drag and drop ASP.NET barcode control to print QR Code in ASP.NET web forms & websites
- Simply copy files into virtual directory to stream QR Codes in Internet Information Services
- Allow QR Code properties customization in Visual C#.NET, Visual Basic .NET Class & Console applications
- Provide flexible QR Code settings in ASP.NET, like width, height, quiet zones, data mode, ECI, ECL, etc
- Stream high-quality QR Codes in ASP.NET web or save locally in Png, Jpeg, Gif, Bmp & Tiff files
ASP.NET QR Code Barcode Generator Overview
KA.Barcode for ASP.NET is a fully integrated SDK library to generate advanced and scannable QR Code images in ASP.NET web forms / websites / web pages using C# & VB.NET class library. In addition, web designers & developers can adjust generated barcode images with a user-friendly interface. This product will automatically add quiet zone for QR Code barcode images.
2D QR Code Barcode Introduction
QR Code, also named as Denso Barcode, QRCode, Quick Response Code, JIS X0510 and ISO/IE18004, is a popular matrix barcode with fast readability and large storage capacity. QR Code could be scanned by smart phones like Blackberry, iPhone, and Windows Phone 7.5. Download QR Code Barcode Generator for ASP.NET
Developers are able to use this KA.Barcode for ASP.NET demo version for free without time limitation, but you can only use it for demo or testing purposes because a "KA Barcode" watermark will appear on the generated barcode images. This demo version includes:
- KeepAutomation.Barcode.Web.dll
- barcode.aspx.cs & barcode.aspx in "barcode" folder
- End user license agreement, user manual, and order page
How to Generate QR Code in ASP.NET Web Control
- Copy "barcode.aspx" and "barcode.aspx.cs" to the target folder
- Right click in "Toolbox" and select "Choose Items..."
- Click "Browse..." to locate and select "KeepAutomation.Barcode.Web.dll"
- Drag and drop "BarCodeControl" from Visual Studio Toolbox into the web form
- Select QR Code type in "Properties" panel and a QR Code barcode is created
- Customize its properties in the "Properties" panel
How to Generate QR Code in C# or VB.NET Programming
- Firstly you need to add our "KeepAutomation.Barcode.Web.dll" to your ASP.NET Web project reference
- Copy the C# or VB.NET barcoding syntax below to create QR Code images into ASP.NET projects.
C# Sample code
BarCode qrcode = new BarCode(); qrcode.Symbology = KeepAutomation.Barcode.Symbology.QRCode; qrcode.CodeToEncode = "155421"; qrcode.X = 4; qrcode.Y = 4; qrcode.BarCodeHeight = 100; qrcode.BarCodeWidth = 100; qrcode.generateBarcodeToImageFile("C://qrcode-csharp.png");
VB Sample code
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode qrcode.Symbology = KeepAutomation.Barcode.Symbology.QRCode qrcode.CodeToEncode = "155421" qrcode.X = 4 qrcode.Y = 4 qrcode.BarCodeHeight = 100 qrcode.BarCodeWidth = 100 qrcode.generateBarcodeToImageFile("C://qrcode-csharp.png")
How to Set ECL & ECI for QR Code in ASP.NET Class
.NET users could set QR Code error correction level (including L, M, Q & H) by setting "QRCodeECL" property and QR Code column Extended Channel Interpretations by setting "QRCodeECI" property. C# Sample code
qrcode.QRCodeECL = KeepAutomation.Barcode.QRCodeECL.M; qrcode.QRCodeECI = 3;
VB Sample code
qrcode.QRCodeECL = KeepAutomation.Barcode.QRCodeECL.M qrcode.QRCodeECI = 3
How to Set QR Code Version & Data Mode in ASP.NET Class
With KA.Barcode for ASP.NET, users could create customized QR Code by setting encoding data mode and QR Code version. Related properties are "QRCodeDataMode" and "QRCodeVersion". C# Sample code
qrcode.QRCodeDataMode = KeepAutomation.Barcode.QRCodeDataMode.Auto; qrcode.QRCodeVersion = KeepAutomation.Barcode.QRCodeVersion.V11;
VB Sample code
qrcode.QRCodeDataMode = KeepAutomation.Barcode.QRCodeDataMode.Auto qrcode.QRCodeVersion = KeepAutomation.Barcode.QRCodeVersion.V11
How to Specify GS1 Compatibility & Tilde Function for QR Code
By agreement between AIM, Inc. and GS1 (formerly EAN International and the Uniform Code Council (UCC)), the use of FNC1 could be used to encode GS1 compatible QR Code. To achieve this, users should set the "FNC1" property. QR Code Symbols are able to encode special characters by setting "TildeEnabled" property to true. C# Sample code
qrcode.FNC1 = KeepAutomation.Barcode.FNC1.First; qrcode.TildeEnabled = true;
VB Sample code
qrcode.FNC1 = KeepAutomation.Barcode.FNC1.First qrcode.TildeEnabled = true
How to Generate QR Code in Microsoft IIS Through URL
- Unzip the trial package, copy "barcode" folder and its contents to your IIS, and create a new virtual directory "barcode"
- Restart IIS and navigate to "http://YourDomain:port/barcode/barcode.aspx?code-to-encode=qrcodedata&symbology=103&X=4&Y=4&left-margin=16&right-margin=16&top-margin=16&bottom-margin=16"
- To add the created barcode pictures in html or aspx pages, please simply insert the following image tag into your web pages: <img src=http:// YourDomain:port /barcode/barcode.aspx?code-to-encode=qrcodedata&symbology=103103&X=4&Y=4&left-margin=4&right-margin=4&top-margin=4&bottom-margin=4/">
|