How to create ISBN barcode in Crystal Reports in C# or VB.NET using .NET barcode writer SDK
Avapose.Barcode for Crystal Reports
  • Easily print ISBN in Crystal Reports in ASP.NET and .NET WinForms projects
  • Generate high quality ISBN barcode images in Crystal Reports
  • Reliable ISBN barcode creator library & DLL for Crystal Report .NET
Barcode Crystal Report > Barcode in Crystal Report > Linear > .NET ISBN in Crystal Report
ISBN Barcode Generation in Crystal Report
  • Easily install & integrate ISBN Generator into Crystal Report
  • Generate ISBN in Windows Forms and Web Forms for Crystal Report
  • Completely run in Visual Basic.NET and C#
  • ISBN parameters are pre-configured in barcode control
  • Flexible barcode property options ensure users generate specific ISBN
  • Provide managed code written in C# with strong-named, digitally signed and time-stamped DLL
  • Compatible with all languages and locales including Double Byte versions of Windows
  • Display ISBN in high-quality Gif, Tiff, Bmp, Png or Jpeg image
.NET ISBN Generation SDK for Crystal Report is a mature and robust barcode control that completely runs in VB.NET and C# to insert high-quality ISBN into Crystal Report. Developers are flexible to generate ISBN in Crystal Report for Windows applications or ASP.NET applications using different .NET DLLs.
Barcode Generation for Crystal Report for .NET - ISBN Information
ISBN stands for International Standard Book Number. It is a unique commercial book identifier assigned to each edition and variation of every published book. The ISBN is 13 digits long after January 1, 2007, which consists of 5 parts including GS1 prefix “978” or “979”, the country of origin, publisher code, title of book and a checksum character. The different parts of ISBN have different length and usually separated by hyphen (-).
.NET ISBN Generator for Crystal Report encodes:
  • Digital character from 0 to 9
Barcode Generation for Crystal Report for .NET - ISBN Generation

Requirements:

Before you generate ISBN in Crystal Report, 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 ISBN Barcode in Crystal Report

  1. 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";
  2. Open your Visual Studio; create a new .NET project with "Crystal Reports Application" as template;
  3. 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;
  4. 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";
  5. 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";
  6. 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. ISBN;
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. ISBN
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 ISBN Barcode Integration & Generation Information
The following ISBN 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