How to Generate QR Code in RDLC Reports

How to Create 2D QR Code Images in RDLC Reports with Free Demo Codes
  • Professional RDLC Reports .NET Barcode Generator Control for 2D QR Code barcode
  • Written in the managed C#, integrated with .NET 2.0, 3.0, 3.5, and 4.0 versions
  • Support Visual Studio 2005 / 2008 / 2010 ReportViewer Local Reports (RDLC)
  • Easily insert powerful QR Code generation functions into RDLC Reports
  • Print QR Code barcodes in RDLC Reports in Jpg, Png, Gif, Tiff and Bmp image formats
  • Adjust and customize QR Code barcode image settings with C# and VB.NET
  • Perpetually royalty-free developer license available for purchase of this barcode generator
QR Code Barcode Generator for RDLC Reports Overview
QR Code Barcode Generator for RDLC Reports is an advanced QR Code generator developed for generating QR Code in RDLC Reports. The generator is an easy-to-install control library. Once integrated into the report, QR Code could be drawn easily. The parameters of the QR Code are customizable by using C# & VB codes. All QR Code barcode images created with barcode generator dll completely compatible with the latest QR Code barcode encoding specifications.
QR Code Barcode Introduction
The QR Code (Quick Response Code) is a 2-dimensional matrix code. It can encode up to 2509 numeric or 1520 alphanumeric characters and offer three levels of error detection. The smallest QR Code measures 21 X 21 cells (each cell encodes one bit) and can grow in increments of 4 cells to a maximum size of 105 X 105 cells. The squares in the bottom left, top left and top right corners are locator patterns.
Download QR Code Barcode Generator for RDLC Reports
Download and unzip KA.Barcode for RDLC Reports, you will see the following items:
  • KeepAutomation.Barcode.RDLC.dll
  • End User License Agreement
  • User Manual
  • Order Page
You are entitled to use this free trial version for an unlimited period of time. But you should note that a "KA Barcode" watermark will exist on the generated barcodes randomly. So the generated barcode images cannot be used in commercial applications.
How to Generate RDLC QR Code Barcode in Windows Forms
It is simple to generate QR Code barcode images in .NET WinForms in the following steps.
  1. Open Visual Studio, create a Windows Application, then name & locate the new project.
  2. Create a new DataSet with the name "AdventureWorks.xsd".
  3. Switch to the "Toolbox", select "Pointer", and drag "TableAdapter" to the new "DataSet".
  4. Create or select a connection to SQL Server AdvantureWorks Sample Database.
  5. Input "SELECT ProductID, Name FROM Production.vProductDescription WHERE (CultureID = N'en') as SQL Statements.
  6. Create a new column by right clicking "vProductAndDescription" on the dataset, then name the column.
  7. Change the data type to "System.Byte[]".
  8. Switch to "Solution Explorer" and add a new "Report" item.
  9. Create a new "Report" item and insert a table to the report.
  10. Add three columns in the dataset to the report table details section.
  11. Drag and drop "Image" item to the last column and name it "Barcode".
  12. Switch to "Properties" window and change "Source", "MIMEType", "Value" to "Database", "image/jpeg", "=Fields!Barcode.Value" respectively.
  13. Then select "Form1.cs[Design]", drag "ReportViewer" to Form1, and bind the data collection.
  14. Add "KeepAutomation.Barcode.RDLC.dll" to project reference.
  15. Copy the following C# & VB demo codes into the method Form1_Load.
  16. Use "KeepAutomation.Barcode.RDLC" namespace and run your project.
C# Sample code
     private void Form1_Load(object sender, EventArgs e)
{
// load data to the data table this.vProductAndDescriptionTableAdapter.Fill
this.vProductAndDescriptionTableAdapter.Fill(this.AdventureWorks.vProductAndDescription);
// create a linear barcode object
BarCode qrcode = new BarCode();
// set barcode type
qrcode.Symbology = KeepAutomation.Barcode.Symbology.QRCode;
qrcode.X = 2;
qrcode.Y = 2;
qrcode.QRCodeECL = KeepAutomation.Barcode.QRCodeECL.L;
// draw barcodes for each data row
foreach (AdventureWorks.vProductAndDescriptionRow
row in this.AdventureWorks.vProductAndDescription.Rows)
{// set barcode encoding data value
qrcode.CodeToEncode = row.ProductID.ToString();
// set drawing barcode image format
qrcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;

row.Barcode = qrcode.generateBarcodeToByteArray();
}
this.reportViewer1.RefreshReport();
}
VB Sample code
     Private Sub Form1_Load(sender As Object, e As EventArgs)
' load data to the data table this.vProductAndDescriptionTableAdapter.Fill
Me.vProductAndDescriptionTableAdapter.Fill(Me.AdventureWorks.vProductAndDescription)
' create a linear barcode object
Dim qrcode As New BarCode()
' set barcode type
qrcode.Symbology = KeepAutomation.Barcode.Symbology.QRCode
qrcode.X = 2
qrcode.Y = 2
qrcode.QRCodeECL = KeepAutomation.Barcode.QRCodeECL.L
' draw barcodes for each data row
For Each row As AdventureWorks.vProductAndDescriptionRow In Me.AdventureWorks.vProductAndDescription.Rows
' set barcode encoding data value
qrcode.CodeToEncode = row.ProductID.ToString()
' set drawing barcode image format
qrcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png

row.Barcode = qrcode.generateBarcodeToByteArray()
Next
Me.reportViewer1.RefreshReport()
End Sub
For QR Code barcode generation for RDLC Reports in Web Forms, please refer to this Barcode Generation Tutorial for RDLC Reports.
QR Code Barcode Properties
Users can customize QR Code barcode images with more QR Code properties here.
Free Trial DownloadRDLC QR CodeQR Code PropertiesData Matrix for RDLCPDF417 for RDLCmoreCodabar for RDLCCode 39 for RDLCCode 128 for RDLCEAN-8 for RDLCEAN-13 for RDLCEAN 128 for RDLCIntelligent Mail for RDLCInterleaved 2 of 5 for RDLCISBN for RDLCITF-14 for RDLCRM4SCC for RDLCUPC-A for RDLCUPC-E for RDLCmore
KeepAutomation provides complete barcode automation solutions. We recommend the customers use high quality document controls: ASP.NET Document Viewer, ASP.NET MVC Document Viewer, Document Viewer ASP.NET C#, ASP.NET PDF Viewer, ASP.NET Word Viewer, ASP.NET Excel Viewer, ASP.NET PDF Editor, MVC PDF Viewer, ASP.NET Annotate PDF, c# pdf sdk, C# View, edit PDF online , C# Convert PDF to Tiff, C# Convert PDF to text, txt, .net imaging sdk, C# PDF metadata edit from RasterEdge.com.