How to display Code 3 of 9 barcode in Crystal Reports for .NET using .NET Barcode SDK for CR Reports
Avapose.Barcode for Crystal Reports
  • Reliable Code 39 barcode creator library & DLL for Crystal Report .NET
  • VB.NET, C#, Managed C++ and Borland Delphi for .NET 2.0/3.0/3.5/4.0
  • Easily print Code 39 in Crystal Reports in ASP.NET and .NET WinForms applications
Barcode Crystal Report > Barcode in Crystal Report > Linear > .NET Code 39 in Crystal Report
Code 39 Barcode Generation in Crystal Reports
  • Create Code 39 & Code 39 Extended images easily in the Crystal Report
  • Stay embedded on redistributed Crystal Report for .NET
  • Complete C# & Visual Basic source code and perpetual license provided in purchased version
  • Support VB.NET, C#, Managed C++ and Borland Delphi for .NET
  • Allow Crystal Report be exported in PDF, Word, Excel and rich text formats
  • Fully integrated in Visual Studio 2005, 2008, and 2010
  • Orientation options of created barcode images include 0, 90, 180 and 270 degrees
  • Generate barcode in PNG, BMP, GIF, JPEG, TIFF image formats
Avapose.Barcode for Crystal Report control is an advanced DLL that can be easily integrated into Crystal Reports to automate barcode generation. Customizations of properties include barcode height, width, X-dimension, margins. of created Code 39 images. Free down package with sample codes are provided by this .NET control.
Code 39 Barcode Control for .NET Crystal Report:
  • Class Library (runtime support)
  • Console Application (runtime support)
  • Windows Service (runtime support)
  • Windows Application (design-time and runtime support)
.NET Barcode Generator for Crystal Report - Code 39 Information
Code 39 is also known as Alpha39, Code 3 of 9, Code 3/9, Type 39, USS Code 39, or USD-3. It is a discrete, linear barcode which encodes 43 characters in variable length. Code 39 does not contain a check digit, however for applications wishing to enhance data security, a modulo 43 check digitl should be appended.
Code 39 barcode generator for Crystal Report encodes:
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • Uppercase letters (A - Z)
  • - (Dash), $ (Dollar), % (Percentage), (Space), . (Point), / (Slash), + (Plus)
Code 39 .NET Barcode Control for Crystal Report - Code 39 Generation


Before using Code 39 barcode control for Crystal Report, make sure you install:
  • Before using Code 39 barcode control for Crystal Report, make sure you install:
  • Operating Systems: Windows XP, Windows Vista and Windows 7
  • Microsoft Visual Studio: 2005, 2008 and 2010
  • .NET Framework: 2.0, 3.0, 3.5, and advanced version
  • Avapose.Barcode for .NET Winforms

Integrate Code 39 .NET Barcode Control for Crystal Report into Visual Studio

  1. Download Avapose.Barcode for .NET Winforms and unzip;
  2. Open Crystal Reports project in Visual Studio, and then choose "Standard" in the "Using the Report Wizard" window and click "OK".
  3. Expand "Create New Connection" and "ADO.NET" in the popped up "Data" form. After click "next" button, you could see the "Connection" form. Navigate to the "CustomerDataSet.xsd" in the downloaded package and click "Finish" button.
  4. Add table "Customer" as selected tables in the "Data" form and click "Next". In following "Fields" form, add all three columns available to "Customer" fields, and Click "Finish".
  5. In CrystalReport1.rpt, drag and drop field "Barcode" to the report Section 3 (Details).
  6. Switch to .NET project solution explorer, and then add "OnBarcode.Barcode.WinForms.dll" to your project reference.

Create Code 39 Barcodes Using .NET Barcode Control for Crystal Report

  1. Open your Form1.cs in Design view, and then double click the form to enter Form1.cs.
  2. Copy the sample code below into the method Form1_Load and using the namespace "Avapose.linearbarcode".
  3. Run the report. Barcode images will be displayed on the Reporting Service.
  4. Crystal Report with barcode images could be exported as PDF, Word, Excel or rich text formats.

C# code

class="kwrd">private void Form1_Load(object sender, EventArgs e)
OleDbConnection aConnection = new OleDbConnection(
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Demo/BarcodeDemoData.mdb");
OleDbDataAdapter dataAdapter = new OleDbDataAdapter("select *
from Customer"
, aConnection);
DataSet ds = new DataSet();
//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 = LinearBarcode.Code39;
foreach (DataRow dr in ds.Tables[0].Rows)
Barcode.BarcodeData = (int)dr["CustomerId"] + "";
byte[] imageData = Barcode.drawBarcodeAsBytes();
dr["Barcode"] = imageData;
CrystalReport1 rpt = new CrystalReport1();
this.crystalReportViewer1.ReportSource = rpt;

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
Dim dataAdapter As New OleDbDataAdapter("select * from Customer", aConnection)
Dim ds As New DataSet()
'add a new column named "Barcode" to the DataSet, the new column data type is

ds.Tables(0).Columns.Add(New DataColumn("Barcode", GetType(Byte())))
Dim Barcode As new Linear()
Barcode.LinearBarcode = LinearBarcode.Code39
For Each dr As DataRow In ds.Tables(0).Rows
Barcode.BarcodeData = CInt(dr("CustomerId")) & ""
Dim imageData As Byte() = Barcode.drawBarcodeAsBytes()
dr("Barcode") = imageData
Dim rpt As New CrystalReport1()
Me.CrystalReportViewer1.ReportSource = rpt
End Sub
Related Code 39 Barcode Integration & Generation Information
The following Code 39 barcode integration and creation information links relate to this product that may be of interest to you:
Avapose.Barcode for Crystal Report Testimonial
We bought your product Barcode Generator for Crystal Report a few weeks ago, and it works pretty well!
Carlos Louis, Eureka Software Ltd, UK.