How to generate ITF14 barcode in Crystal Reports in C# or VB.NET using .NET Barcode encoder SDK
Avapose.Barcode for Crystal Reports
  • Reliable ITF14 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 ITF14 in Crystal Reports in ASP.NET and Windows Forms projects
Barcode Crystal Report > Barcode in Crystal Report > Linear > .NET ITF-14 in Crystal Report
Crystal Reports ITF14 Creator Component
  • Add ITF-14 barcoding features easily into Crystal Report applications
  • Create barcode complied with GS1 general specifications
  • Easy to be used in VB.NET, C#, Managed C++ and Borland Delphi for .NET
  • Complete .NET control stays on Crystal Report
  • Completely integrated with .NET 2.0, 3.0, 3.5, and greater
  • Multiple languages & locales compatibility include Double Byte versions of Windows
  • Flexible options include barcode height, width, X-dimension, wide/narrow ratio, margins etc.
  • Generate & save barcode images in PNG, BMP, GIF, JPEG, TIFF image formats
Avapose.Barcode for Crystal Report provides easy-to-configure tool which helps you change a field to barcode in Crystal Report by simple clicks. Complete C# & Visual Basic source code and perpetual license are provided in purchased version. Crystal Report could be exported as PDF, Word, Excel and rich text formats.
.NET Barcode Control for Crystal Report - ITF-14 Information
ITF-14 is a self-checking, continuous, numeric only linear barcode based on GS1 standard. The barcodes used by GS1 include EAN/UPC, GS1 DataBar, GS1-128, ITF-14 and GS1 DataMatrix. ITF-14 barcode symbols can encode the GTIN-12 or GTIN-13 Global Trade Item Numbers. It is widely used on corrugated cartons.
ITF-14 Barcode Control for Crystal Report encodes:
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
ITF-14 Barcode Generator for Crystal Report - ITF-14 Generation

Requirements:

Before using ITF-14 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 Crystal Report

Integrate ITF-14 .NET Barcode Control for Crystal Report into Visual Studio

  1. Open Crystal Reports project in Visual Studio, and then choose "Standard" in the "Using the Report Wizard" window and click "OK".
  2. 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.
  3. 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".
  4. In CrystalReport1.rpt, drag and drop field "Barcode" to the report Section 3 (Details).
  5. Switch to .NET project solution explorer, and then add "OnBarcode.Barcode.WinForms.dll" to your project reference.

Create ITF-14 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");
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 = LinearBarcode.ITF14;
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 = LinearBarcode.ITF14
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 ITF14 Barcode Integration & Generation Information
The following ITF14 barcode integration and creation information links relate to this product that may be of interest to you:
Testimonial for Barcode Generation SDK for .NET
We bought your product Barcode Generator for Crystal Report a few weeks ago, and it works pretty well!
Carlos Louis, Eureka Software Ltd, UK.