How to create Codabar barcode in Crystal Reports for .NET using barcode maker .NET SDK
Avapose.Barcode for Crystal Report
  • Reliable Codabar barcode creator library & DLL for Crystal Report .NET
  • Easily print Codabar in Crystal Reports in ASP.NET and WinForms applications
  • VB.NET, C#, Managed C++ and Borland Delphi for .NET 2.0/3.0/3.5/4.0
Barcode Crystal Report > Barcode in Crystal Report > Linear > .NET Codabar in Crystal Report
Crystal Reports Codabar Creator Component
  • Easily install & integrate Codabar Generation SDK into Crystal Report
  • Can be used in Windows Forms and Web Forms
  • Can be used in any .NET languages such as C#, VB.NET, Managed C++, etc
  • Codabar parameters are pre-configured in barcode control
  • Flexible barcode size options ensure users generate specific Codabar
  • Provide managed code written in C# with strong-named, digital-signed and time-stamped DLL
  • Compatible with all languages and locales settings such as used in China, Japan and Singapore
  • Royalty-free and perpetual developer license provided
.NET Codabar Component for Crystal Report is an easy-to-use .NET DLL that lets you easily add Codabar generation features into your Crystal Report for .NET. The generated Codabar can be saved as high quality image in various formats such as Gif, Tiff, Bmp, Png, Jpeg, etc.
Barcode Generation for Crystal Report for .NET - Codabar Information
Codabar, known as Codeabar, Ames Code, NW-7, Monarch, Code 2 of 7, Rationalized Codabar, ANSI/AIM BC3-1995 or USD-4, was developed in 1972 by Pitney Bowes. This symbology is a discrete, self-checking linear barcode capable of encoding 16 different characters with start and stop character A, B, C or D appended. This barcode is widely used in library, FedEx airbill, blood banks, etc.
.NET Codabar generator for Crystal Report encodes:
  • The basic 12 characters: digits from 0 to 9, dash, and﹩
  • An additional 4 characters: +,:, /, and .
  • 4 start and stop characters: A, B, C, D
Barcode Generation for Crystal Report for .NET - Codabar Generation

Requirements:

Before you generate Codabar in Crystal Report applications, you need to install:
  • Windows XP, Windows Vista, Windows 7, etc
  • .NET Framework 2.0/ 3.0 and advanced version
  • Microsoft Visual Studio 2005/2008/2010
  • Crystal Report for .NET (run-time support)
  • Avapose.Barcode for Crystal Report
Generate Codabar Barcode in Crystal Report
  • In the demo file, there are a "BarcodeDemoData.mdb" that including "ID", "CustomerId", and "CustomerName", a "CustomerDataSet.xsd" to define the three columns and an extra column named "Barcode’;
  • Open your Visual Studio; create a new .NET project with "Crystal Reports Application" as template;
  • Create a new report with Crystal Report. In the "Data" form, expand "Create New Connection", double click "ADO.NET (XML)" and select "File Path" as "C:\Demo\CustomerDataSet.xsd" in your downloaded sample dataset package;
  • You are back at the "Data" form. Double click "table", then click "Next". In the "Fields" form, double click or drag and drop "ID", "CustomerID", "CustomerName" to "Fields to Display" and click "Finish";
  • In "CrystalReport1.rpt", drag and drop the "Barcode" in the "Field Explorer" to report Section 3. And add "Avapose.linearbarcode.winforms.dll" to your project reference in "Solution Explorer";
  • Open your "Form1.cs", copy the following samples accordingly and debug.

C# code

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. LinearBarcode = Linear Barcode. Codabar;
foreach (DataRow dr in ds.Tables[0].Rows)
{
Barcode.BarcodeData = (int)dr["CustomerId"] + "";
byte[] imageData = Barcode.drawBarcodeAsBytes();
dr["Barcode"] = imageData;
}
CrystalReport1 rpt = new CrystalReport1();
rpt.SetDataSource(ds);
this.crystalReportViewer1.ReportSource = rpt;
aConnection.Close();

VB code

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) 
Handles MyBase.Load

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 Linear()
Barcode. LinearBarcode = Linear Barcode. Codabar
For Each dr As DataRow In ds.Tables(0).Rows
Barcode.BarcodeData = CInt(dr("CustomerId")) & ""
Dim imageData As Byte() = Barcode.drawBarcodeAsBytes()
dr("Barcode") = imageData
Next
Dim rpt As New CrystalReport1()
rpt.SetDataSource(ds)
Me.CrystalReportViewer1.ReportSource = rpt
aConnection.Close()
End Sub

Related Codabar Barcode Integration & Generation Information
The following Codabar barcode integration and creation information links relate to this product that may be of interest to you:
Testimonial for Avapose.Barcode for Crystal Report
We bought your Barcode Generator for Crystal Report a few weeks ago, and it works pretty well
Carios Louis, Eureka Software Ltd,UK