BizCode Barcode Generator for RDLC
The most mature barcode solution for ReportViewer Local Reports (RDLC)
Quick Overviews
  • Easy-to use barcode SDK
  • VS & RDLC 2005/2008 support
  • Various linear&2D barcodes
  • Dynamic file formats support
  • For all printers & scanners
Barcode in RDLC > .NET WinForms Barcode
How to Generate Barcodes in RDLC in WinForms
BizCode Generator for RDLC is a reliable and powerful .NET component that integrates into Visual Studio to draw and create high quality barcodes in reports on RDLC formats. More than 30+ linear and 2D barcodes are supported to be generated in RDLC with barcode component SDK for RDLC.
RDLC Barcode Generator Requirements
Windows OS
Can be used in Microsoft Windows 7, Windows Vista, Windows XP, Windows Server 2008, Windows Server 2005, etc
.NET Technology Support
Fully written in managed C# in .NET 2.0, 3.0, 3.5 and 4.0 in Visual Studio 2005/2008/2010, can be used in any .NET language environment such as C#, VB.NET. etc
RDLC Barcode Generator Test Environment
Test Environment
Test this barcode DLL in these environments which have Microsoft Windows XP, Microsoft Visual Studio 2005 and Visual C#.NET or Visual Basic installed
Test Product
BizCode Generator for RDLC
Generate Barcodes in RDLC in Windows Applications
  1. Download BizCode Generator for RDLC Free Trial and unzip it;
  2. Open Visual Studio and create a new Windows Forms project naming "RDLC Barcode Demo";
  3. Create a new "DataSet" and name it "AdventureWork.xsd";
  4. Drag and drop "TableAdapter" to your created DataSet in toolbox;
  5. Create a new connection or use existing connection to SQL Server AdventureWorks Sample Database;
  6. Keep "Use SQL statements" to access the database and input "SELECT ProductID, Name FROM Production.vProductAndDescription WHERE (CultureID = N'en')" as SQL statements;
  7. Right click "vProductAndDescription" on the DataSet to create a new column in the "DataTable" and name it "Barcode";
  8. In the "properties" window, change this barcode "DataType" to "System.Byte[]";
  9. Create a new report and name "Report1.rdlc";
  10. Drag and drop a "Table" onto the report;
  11. In the "properties" window, set image item property "MIMEType" to "image/jpeg", "Source" to "Database" and "Value" to "=Fields!Barcode.Value";
  12. Drag a "ReportViewer" to "Form1.cs";
  13. Add "BusinessRefinery.Barcode.Win.dll" to .NET project reference from the "Solution Explorer";
  14. Copy the following C# or VB code accordingly into the method Form1_Load and run the project. You can get the Code 128 images displayed on the report.
private void Form1_Load(object sender, EventArgs e)
{
// load data to the data table
this.vProductAndDescriptionTableAdapter.Fill

(this.AdventureWorks.vProductAndDescription);
// create a linear barcode object
Linear barcode = new Linear();
// set barcode type
barcode.LinearBarcode = LinearBarcode.Code128;
// draw barcodes for each data row
foreach (AdventureWorks.vProductAndDescriptionRow
row in this.AdventureWorks.vProductAndDescription.Rows)
{// set barcode encoding data value
barcode.Data = row.ProductID.ToString();
// set drawing barcode image format
barcode.Format = System.Drawing.Imaging.ImageFormat.Jpeg;
row.Barcode = barcode.drawBarcodeAsBytes();
}
this.reportViewer1.RefreshReport();
}
Private Sub Form1_Load(ByVal sender 
As System.Object, ByVal e As System.EventArgs) Handles MyBase.
Load'TODO: This line of code
loads data into the 'AdventureWorks.vProductAndDescription'
table.
You can move, or remove it, as needed.
Me.vProductAndDescriptionTableAdapter.Fill
(Me.AdventureWorks.vProductAndDescription)
Dim barcode As New Linear()
barcode.LinearBarcode = LinearBarcode.Code128
Dim row As AdventureWorks.vProductAndDescriptionRow
For Each row In Me.AdventureWorks.vProductAndDescription.Rows
' set barcode encoding data value
barcode.Data = row.ProductID.ToString()
' set drawing barcode image format
barcode.Format = System.Drawing.Imaging.ImageFormat.Png
row.Barcode = barcode.drawBarcodeAsBytes()
Next
Me.ReportViewer1.RefreshReport()
End Sub