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 > ASP.NET Barcode
How to Generate Barcodes in RDLC in ASP.NET
BizCode Generator for RDLC generates and creates linear and 2D barcodes in RDLC local reports in high quality with the installation of barcode control SDK for RDLC. This .NET Control is entirely written in C#.NET 2.0 and compliant with .NET Framework 2.0, 3.0, 3.5 and above versions.
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 ASP.NET
  1. Download BizCode Generator for RDLC Free Trial and unzip it;
  2. Start Visual Studio and create ASP.NET web form project; add the generation dll to the project reference;
  3. Switch to "Solution Explorer", and then right click the web application to add a class;
  4. Copy the C# or VB sample code into the created class;
  5. Click "Build" and then select "Build Web Site";
  6. Switch to "Solution Explorer", and then right click the web application to add a report;
  7. Display the "Report Items", and then insert a table into report;
  8. Switch to "Website Data Source", add "Name" and "Price" items to the report;
  9. Drag and drop an Image item to the "Barcode" column and setting the properties of image: Set "MIMEType" to "image/jpeg" , "Source" to "Database" and "Value" to "=Fields!Barcode.Value" . Then save the report;
  10. Switch to "Solution Explorer", and then right click "Default.aspx" to click "View Designer" menu;
  11. Drag "View Designer" to the report, and then choose created report "Report1.rdlc";
  12. Run the project.
using System;
using System.Collections.Generic;
using BusinessRefinery.Barcode;
public class Product
{
private string m_name;
private int m_price;
private byte[] m_bit;
public Product(string name, int price, string data)
{
m_name = name;
m_price = price;
WebLinearBarcode barcode = new WebLinearBarcode ();
barcode. Symbology = Symbology.CODE39;
m_bit = barcode.drawBarcodeAsBytes();
}
public byte[] Bit
{
get { return m_bit; }
}
public string Name
{
get
{
return m_name;
}
}
public int Price
{
get
{
return m_price;
}
}
}
public class Merchant
{
private List<Product> m_products;
public Merchant()
{
m_products = new List<Product>();
m_products.Add(new Product("CODE39", 25, "CODE39"));
m_products.Add(new Product("code39", 30, "code39"));
m_products.Add(new Product("qrcode", 15, "qrcode"));
}
public List<Product> GetProducts()
{
return m_products;
}
}
Imports System.Collections.Generic
Imports BusinessRefinery.Barcode
Public Class Product
Private m_name As String
Private m_price As Integer
Private m_bit As Byte()
Public Sub New(name As String, price As Integer, data As String)
m_name = name
m_price = price
Dim barcode As New WebLinearBarcode ()
barcode. Symbology = Symbology.CODE39
m_bit = barcode.drawBarcodeAsBytes()
End Sub
Public ReadOnly Property Bit() As Byte()
Get
Return m_bit
End Get
End Property
Public ReadOnly Property Name() As String
Get
Return m_name
End Get
End Property
Public ReadOnly Property Price() As Integer
Get
Return m_price
End Get
End Property
End Class
Public Class Merchant
Private m_products As List(Of Product)
Public Sub New()
m_products = New List(Of Product)()
m_products.Add(New Product("CODE39", 25, "CODE39"))
m_products.Add(New Product("code39", 30, "code39"))
m_products.Add(New Product("qrcode", 15, "qrcode"))
End Sub
Public Function GetProducts() As List(Of Product)
Return m_products
End Function
End Class