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

.NET RDLC Reports QR Code Barcode Generator

Mature, Easy-to-use .NET RDLC Barcode Generator Library for QR Code
  • Professional RDLC Reports .NET Barcode Generator for QR Code 2D barcode
  • Written in C# with integration into .NET 2.0, 3.0, 3.5, and 4.0 version
  • Supporting Visual Studio 2005 / 2008 / 2010 ReportViewer Local Reports (RDLC)
  • Generate multiple QR Code barcodes in RDLC Report with data from database
  • Print QR Code 2D barcodes in Report RDLC in Jpg, Png, Gif and Bmp image formats
  • Create QR Codes images and adjust barcode settings easily with C# and VB.NET
  • Perpetually royalty-free developer license available for purchase
RDLC Local Report QR Code Barcode Introduction
QR-Code is a widely used 2D symbology developed by Denso Wave. It is also known as Quick Response Code, Denso Barcode, QRCode, JIS X 0510, ISO/IEC 18004.
Compatibility: All the QR Code barcode images created with BarcodeLib Barcode for RDLC Report control are definitely compatible with ISO/IEC 18004 (Second Edition 2006-09-01) bar code symbology specification.
To know more, please refer to detailed QR-Code Introduction.
How to Generate QR Code barcode in RDLC Reports for ASP.NET
View Detailed Guide on Barcode Printing in RDLC Report for ASP.NET
  1. Create a new ASP.NET Web Application Project.
    • Create a new "ASP.NET Web Site" project, named "BarcodeforRDLCReports".
  2. Add a new Class to the project and Add Reference.
    • Add a new item (Class), named "SampleClass.cs" to the project.

    • Add "BarcodeLib.Barcode.RDLCReports.dll" to the project reference.
    • Add the following sample code to your created class "APP_Code/SampleClass.cs".
    • In Visual Studio menu bar, choose "Build Web Site" from "Build" tab. view image
     using System.Collections.Generic;
using BarcodeLib.Barcode.RDLCReports;
using BarcodeLib.Barcode;



public class SampleClass
{
private string m_description;
private int m_price;
private byte[] m_bytes;

public SampleClass(string description, int price, string data)
{
m_description = description;
m_price = price;
QRCodeRDLC barcode = new QRCodeRDLC();
barcode.Data = data;
m_bytes = barcode.drawBarcodeAsBytes();
}

public byte[] Bytes
{
get { return m_bytes; }
}

public string Description
{
get
{
return m_description;
}
}

public int Price
{
get
{
return m_price;
}
}
}

public class Merchant
{
private List<SampleClass> m_products;

public Merchant()
{
m_products = new List<SampleClass>();
m_products.Add(new SampleClass("code128", 25, "code128"));
m_products.Add(new SampleClass("code39", 30, "code39"));
m_products.Add(new SampleClass("qrcode", 15, "qrcode"));
}

public List<SampleClass> GetProducts()
{
return m_products;
}
}
3. Add a new Report to the web form.
  • Add a new report (Report), named "RDLCReports.rdlc" to the project.
  • In Report Items from Toolbox, insert a "Table" to the report.
  • In "Website Data Sour...", add "Name" and "Price" to first two columns of the report table details section.
    Name the last column "Barcode".
  • In "Toolbox", drag an "Image" item to the last column "Barcode".
  • Set image properties "MIMEType" to "image/jpeg", "Source" to "Database", and "Value" to "=Fields!Barcode.Value".
    Save the report.
4. Add a Report Viewer to the web form.
  • In "Solution Explorer", right-click "Default.aspx", and select "View Designer".
  • In "Toolbox", add "ReportViewer" to the web form project, with the default setting unchanged. view image
  • In "ReportViewer Tasks" window, choose your created report "RDLCReports.rdlc". view image
5. Resize the "ReportViewer", and run the project.
How to Generate QR Code barcode in RDLC Reports for .NET WinForms
BarcodeLib RDLC Barcode Genrator also supports creating QR Codes in .NET WinForms, please follow the detailed developer guide below for barcode printing:
Please remember to change the following C# code:
     // create a linear barcode object
LinearRDLC barcode = new LinearRDLC();

// set barcode type to Code 128
barcode.Type = BarcodeType.CODE128;

into:
     // create a QR Code barcode object
QRCodeRDLC barcode = new QRCodeRDLC();
How to Generate QR Code barcode in RDLC Report with C#, VB.NET
It's easy to achieve QR Code barcode printing in RDLC Reports using Visual C# or Visual Basic (VB.NET). Just follow the guide to view how:
Client RDLC Reports Barcode Generator SDK Supported Symbologies
Linear (1D) Barcodes:
Matrix(2D) Barcodes:
.NET RDLC Reports Barcode DLL Creates 2D Barcodes: Data Matrix, PDF 417, QR Code.



Related Developer Guide: How to Generate Barcode Images

How to generate barcodes in RDLC Reports for ASP.NET & .NET WinForms projects