Powerful and Mature Barcode Library for Crystal Report
Avapose.Barcode for Crystal Report
  • Cystal Report for .NET barcode creation SDK
  • VB.NET, C#, Managed C++ and Borland Delphi for .NET 2.0/3.0/4.0
  • High-quality linear & 2D barcode generation for all scanners
Barcode Crystal Report > Barcode in Crystal Report > Linear > .NET EAN-8 in Crystal Report
EAN-8 Barcode Generation in Crystal Report
  • Easily install & integrate EAN-8 Generator into Crystal Report
  • Generate EAN-8 in Windows Forms and Web Forms for Crystal Report
  • Completely run in Visual Basic.NET and C#
  • EAN-8 parameters are pre-configured in this barcode control
  • 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
  • Royalty-free and perpetual developer license provided
EAN-8 Barcode Control for .NET Crystal Report provides perfect barcode generation function in Crystal Report with high quality. Barcode parameters are pre-configured in this barcode DLL for easy generation. Rich barcode property options are provided for developers to generate required EAN-8.
Barcode Generation for Crystal Report for .NET - EAN-8 Information
EAN-8, which is a subset of EAN-13, provides a “short” barcode for small packages such as cigarettes, pencils and chewing gum packets where an EAN-13 barcodes would be too large. EAN-8 is eight digits long with a checksum character appended on the rightmost of the barcode. The supplementary barcodes like EAN-8+2 and EAN-8+5 are designed to encode supplemental information on periodicals and paperback books.
.NET EAN-8 Generator for Crystal Report encodes:
  • Digital character from 0 to 9
Barcode Generation for Crystal Report for .NET - EAN-8 Generation

Requirements:

To insert EAN-8 into Crystal Report, you should 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 EAN-8 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. Ean8;
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. Ean8
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 EAN-8 Barcode Integration & Generation Information
The following EAN-8 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