BizCode Barcode Generator for Crystal Report
The most advanced barcode control for Crystal Report
Quick Overviews
  • Crystal Report .NET SDK
  • Linear & 2D barcode support
  • .NET 2.0/3.0/4.0 support
  • Support C#, VB.NET, etc.
  • Multiple file formats support
Barcode Crystal Report > Barcode in Crystal Report > 2D > .NET Micro QR Code in Crystal Report
How to Generate Micro QR Code in Crystal Report
Micro QR Code is a variant of matrix symbology QR Code 2005 with less modules and smaller symbol sizes, which enables data to be represented in a small QR Code symbol, particularly suited to direct marking on parts and components, and to applications where the space available for the symbol is severely restricted.
Barcode Generator for Crystal Report helps .NET developers to generate barcode images in report for .NET. The generator is a .NET control library with robust barcode generation features. The control could be easily added into Crystal Reports for .NET.
Micro QR Code Crystal Report Generator is developed for Crystal Report to generate Micro QR Code barcodes. With integrated Micro QR Code Crystal Report Generator, high quality Micro QR Code barcode could be generated without using font. This page demonstrates how to insert Micro QR Code barcodes into Crystal Reports.
Micro QR Code Generator for ASP.NET Features
Encodable Characters Support to encode:
- Numeric characters
- Alphanumeric data
- Byte characters
- Kanji characters
Barcode Specification Compatible with QR Code barcode specification in ISO / IEC 18004 (2nd edition 2006-09-01)
Quick Integration Easy to integrate advanced Micro QR Code generating features into ASP.NET class, ASP.NET Web applications and Internet Information Service
Full Customization Options Multiple barcode setting options for you to select, including module width, image width, color, rotation, resolution, text, etc.
Image or Graphics Generate and print QR Code images in Png, Jpeg/Jpg, Gif, Tiff, Bmp formats, in stream object, in graphics object
For all Printers Resolution customizable with DPI setting to print high-quality barcodes with all printers, and no special printers or hardware is required
Micro QR Code Generator for Crystal Report Requirements
Windows OS
- Windows 7
- Windows Vista
- Windows XP
Development Environments
- .NET 2.0, 3.0 or later version
- C#, VB.NET, Managed C++, Borland Delphi for .NET
- Microsoft Visual Studio 2005/2008/2010 with Crystal Report Wizard
How to Create a Crystal Report for .NET
  1. Download Barcode Generator for Crystal Report and unzip;
  2. Open Visual Studio and create a web project using "ASP.NET Crystal Report Web Site";
  3. Select the Crystal Report Template, then name and locate the report;
  4. When the Crystal Report Gallery dialog box appears, accept the defaults of "Use Report Expert" and "Standard Report", and click "OK";
Setup in Crystal Report for .NET
  1. Select "ADO.NET" in "Create New Connection" when Crystal Reports wizard dialogue pops up;
  2. Browse and find "CustomerDataSet.xsd" in your downloaded sample dataset package (or any other dataset of your own), then click "Finish";
  3. Click on the Tables node to expand;
  4. Drag and drop the table name to the window titled Tables In Report, and click "Next";
  5. To display fields on the report, select them at the Field tab, and click "Finish";
  6. Modify the form so that it can preview and print the report;
How to Generate Micro QR Code in Crystal Report for .NET
  1. Drag and drop the field named "Barcode" to the report in Crystal Report1.rpt;
  2. Open Form1.cs in Design view, and add Barcode .linearbarcode.aspnet.dll to the project reference;
  3. Double click Form1 to enter Form1.cs, and copy the sample code into the method Form_Load;
  4. Using the namespace "Bizcode.linearbarcode" if your report is created in C#.NET;
Micro QR Code Generation Sample Code
Copy the following code accordingly and run the project:
protected void Page_Load(object sender, EventArgs e)
{
OleDbConnection aConnection = new OleDbConnection(
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Demo/BarcodeDemoData.
mdb"
);
aConnection.Open();
OleDbDataAdapter dataAdapter = new OleDbDataAdapter
("select * from Customer", aConnection);
DataSet ds = new DataSet();
dataAdapter.Fill(ds);
//add a new column named "Barcode" to the DataSet, the new column data
type is byte[]
ds.Tables[0].Columns.Add(new DataColumn("Barcode", typeof(byte[])));
WebMicroPDF417 barcode = new WebMicroQRCode ();
barcode.data = "123";
foreach (DataRow dr in ds.Tables[0].Rows)
{
barcode.Data = (int)dr["CustomerId"] + "";
byte[] imageData = barcode.drawBarcodeAsBytes();
dr["Barcode"] = imageData;
}
CrystalReportSource1.ReportDocument.Load(Server.MapPath
("CrystalReport1.rpt"));
CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables[0]);
CrystalReportSource1.DataBind();
aConnection.Close();
}
Protected Sub CrystalReportViewer1_Init(ByVal sender As Object, 
ByVal e As System.EventArgs) Handles CrystalReportViewer1.Init
Dim aConnection As New OleDbConnection
("Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=C:/Demo/BarcodeDemoData.mdb"
)
aConnection.Open()
Dim dataAdapter As New OleDbDataAdapter("select * from Customer",
aConnection)
Dim ds As New DataSet()
dataAdapter.Fill(ds)
'add a new column named "Barcode" to the DataSet, the new column
data type is byte[]
ds.Tables(0).Columns.Add(New DataColumn("Barcode", GetType(Byte())))
Dim barcode As New WebMicroQRCode ()
barcode.data = "123"
For Each dr As DataRow In ds.Tables(0).Rows
barcode.Data = CInt(dr("CustomerId")) & ""
Dim imageData As Byte() = barcode.drawBarcodeAsBytes()
dr("Barcode") = imageData
Next
CrystalReportSource1.ReportDocument.Load(Server.MapPath
("CrystalReport1.rpt"))
CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables(0))
CrystalReportSource1.DataBind()
aConnection.Close()
End Sub