KA.Barcode for .NET Suite
How to Generate QR Code in C# Application
How to Generate 2D QR Code Barcode Images Using Visual C# in .NET Applications
  • Easy integrated into .NET applications to generate QR Code with C#.NET class library
  • Print valid matrix barcode QR Code images in ASP.NET websites and WinForms applications
  • Support integrating 2D barcodes QR Code, Data Matrix & PDF-417 in Crystal Reports and RDLC Reports
  • Draw and save QR Code bar codes in gif, jpeg, png, tiff, and bitmap formats with C#.NET programming
  • Multiple properties for selection, such as QR Code version, data mode, ECL, Structure Append, etc
  • A variety of barcode options are user-defined, including module width, height, resolution, orientation, etc
C# QR Code Barcode Generator Overview
Barcode Generator for .NET Suite is an easy-to-use barcode encoder component featuring QR Code generation & barcoding in .NET projects, with which developers can easily integrate QR Code images in ASP.NET web forms, WinForms, C#.NET class & console applications. Besides, the user-friendly interface provides easy access to customize generated QR Code images like size, orientation, resolution, and so on.
2D QR Code Barcode Description
QR Code, also named as Denso Barcode, QRCode, Quick Response Code, JIS X0510, 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.
How to Generate QR Code in ASP.NET Using C#
This Barcode Generator control supports generating QR Code barcode images in ASP.NET web applications. You can easily create QR Code in ASP.NET websites with control by dragging and dropping, stream QR Code barcode in website as url through Microsoft IIS, or simple generate QR Code with Visual C# programming in ASP.NET web projects. View How to generate barcode in C#.NET using ASP.NET.
How to Create QR Code in .NET Windows Forms Using C#
Users can also paint and draw high-quality QR Code barcodes in .NET Windows Forms applications. You can directly drag the barcoding control to a Windows Form and get a QR Code image or create barcodes with Visual C# programming. For more details, please view How to create barcode using C# in .NET WinForms.
How to Print QR Code in Crystal Reports Using C#
With this barcode component dll SDK, developers can easily generate multiple QR Code images in Crystal Reports. This control is lightweight and easy to use with no barcode fonts or any third party tool needed. All barcode parameters are adjustable through simple C# programming. View details here: How to create barcode using Visual C# in Crystal Reports
How to Add QR Code in RDLC Reports Using C#
This .NET Barcode Generator for .NET also supports creating QR Code barcode images in Microsoft Visual Studio 2005 / 2008 / 2010 ReportViewer Local Reports (RDLC). You can easily adjust QR Code settings through Visual C# programming. Please click the tutorial here for more details: How to create barcode using C# in RDLC Reports.
How to Create QR Code in Class Library Using C#
Lastly, you can always resort to Visual C# code for easy QR Code barcode generation in .NET projects. Below is the C# sample code for you with some basic settings. Please copy to your barcoding application for a test. You may make some adjustments for the QR Code Parameters if necessary.
C# Sample code
     BarCode qrcode = new BarCode();
qrcode.Symbology = KeepAutomation.Barcode.Symbology.QRCode;

//Select a QR Code supported data mode according to your code:
//AlphaNumeric: for 0 - 9, upper case letters A - Z, and nine punctuation characters space, $ % * + - . / :
//Byte data: for (ISO/IEC 8859-1) encoding characters at 8 bits per character
//Kanji Characters (JIS)
//Numeric: for digits 0 - 9
qrcode.QRCodeDataMode = QRCodeDataMode.Auto;

//Input your QR Code encoding data:
qrcode.CodeToEncode = "C#QRCodeGenerator";

// Unit of measure, pixel, cm and inch supported.
qrcode.BarcodeUnit = BarcodeUnit.Pixel;
// QR Code image resolution in dpi
qrcode.DPI = 72;
// QR Code bar module width (X dimention)
qrcode.X = 3;
// QR Code bar module height (Y dimention), Y=X
qrcode.Y = 3;

// QR Code image left margin size, the minimum value is 4X.
qrcode.LeftMargin = 12;
// Image right margin size, minimum value is 4X.
qrcode.RightMargin = 12;
// Image top margin size, minimum value is 4X.
qrcode.TopMargin = 12;
// Image bottom margin size, minimum value is 4X.
qrcode.BottomMargin = 12;

// QR Code orientation, 90, 180, 270 degrees supported.
qrcode.Orientation = KeepAutomation.Barcode.Orientation.Degree0;

// QR Code barcode version, valid from V1-V40
qrcode.QRCodeVersion = QRCodeVersion.V5;

// QR Code barcode Error Correction Lever, supporting H, L, M, Q.
qrcode.QRCodeECL = QRCodeECL.H;

// QR Code image formats, supporting Png, Jpeg, Gif, Tiff, Bmp, etc.
qrcode.ImageFormat = ImageFormat.Png;

// Generate QR Code barcodes in image format GIF

/* Create QR Code barcodes in Stream object
qrcode.generateBarcodeToStream(".NET System.IO.Stream Object");

Draw & Print QR Code barcodes to Graphics object
qrcode.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");

Generate QR Code barcodes & write to byte[]
byte[] barcodeInBytes = qrcode.generateBarcodeToByteArray();

Generate QR Code barcodes & encode to System.Drawing.Bitmap object
Bitmap barcodeInBitmap = qrcode.generateBarcodeToBitmap();