Barcode Generator for Crystal Reports Tutorial
How to Generate Linear and 2D Barcodes in Crystal Report
.NET Barcode for Crystal Reports Download Now
Purchase Crystal Reports Barcode Generator SDK License
"Professional support team is a huge help to us that has been extremely supportive of these efforts to ensure implementation of our reporting projects."
- Neil Ward, US

Generate, Create, Print, & Draw Linear, 2D Bar Codes in Crystal Reports for .NET

  • Add robust barcodes generation capabilities into Crystal Reports for .NET
  • Print dynamic QR Code, Data Matrix, and PDF-417 in report with built-in features
  • Supports Code 39, Code 128, EAN-128, EAN-8, EAN-13, UPC-A, UPC-E
  • Provide detailed guide and complete code for VB and C# programmers
  • Capable of encoding barcode with JPEG, PNG, BMP, or GIF image file
  • Completely coded in C#.NET by strong named assemblies
  • Compatible with latest barcode symbology ISO Standards
  • Mature & reliable .NET Barcode Generating Components since 2004
Barcode Generator for Crystal Reports for .NET is a .NET component developed to generate 20+ linear & matrix barcode in Crystal Report. The generator is a control library with barcode generation capabilities. The control could be installed and used easily in Crystal Reports for .NET with Xcopy.
Barcode Generator for .NET Crystal Reports is specially designed for the development of Crystal Report for .NET. The integrated barcode generation capabilities could be used to draws high quality graphics object in your reports. The generated barcode is highly customizable.
Download .NET Crystal Reports Barcode Generator Free Demo Package
Top
.NET Crystal Reports Barcode Generator Package Brief Introduction
Top
  1. In our demo dataset "BarcodeDemoData.mdb", there is a table "Customer", with three columns inside: "ID", "CustomerId", "CustomerName".
  2. There is a CustomerDataSet.xsd file for "BarcodeDemoData.mdb", which defines all above three columns in Customer table, also define one extra column named "Barcode", with data type "xs:base64Binary".
  3. In the following example, we will show you how to display all three column data and also with the extra barcode column which displays Code 128 barcode with "CustomerId" value encoded.
How to Generate Barcode Images in .NET Crystal Reports
Top
  1. Create a new .NET project with "Crystal Reports Application" as template. Name the project as "CrystalReportsBarcode".


  2. Create a new report "Using the Report Wizard", and choose "Standard", and click "OK" button.
  3. In "Data" form, expand "Create New Connection", and expand "ADO.NET".


  4. In "Connection" form, select the "CustomerDataSet.xsd" in your downloaded sample dataset package. Then click "Finish" button.


  5. In "Data" form, and add table "Customer". Then click "Next".


  6. In "Fields" form, add all three columns in the table "Customer". Click "Finish".


  7. In CrystalReport1.rpt, add field "Barcode" to the report Section 3 (Details).


  8. In your .NET project solution explorer, add "OnBarcode.Barcode.WinForms.dll" to your project reference.
  9. Open your Form1.cs in Design view, double click the form, enter Form1.cs.

  10. Copy the following C# code into the method Form1_Load.
   private void Form1_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[])));
Linear barcode = new Linear();
barcode.Type = BarcodeType.CODE128;
foreach (DataRow dr in ds.Tables[0].Rows)
{
barcode.Data = (int)dr["CustomerId"] + "";
byte[] imageData = barcode.drawBarcodeAsBytes();
dr["Barcode"] = imageData;
}
CrystalReport1 rpt = new CrystalReport1();
rpt.SetDataSource(ds);
this.crystalReportViewer1.ReportSource = rpt;
aConnection.Close();
}
11. Run the report.

Barcode Types Supported By .NET Crystal Reports Barcode Control
Top

Barcode Control for Crystal Report - Bar Code Type Generation

OnBarcode is a market-leading provider of barcode imaging generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.