BizCode Barcode Generator for Crystal Report
The most advanced barcode control for Crystal Report
Quick Overviews
  • Crystal Report .NET SDK
  • Linear & 2D barcode support
  • .NET 2.0/3.0/4.0 support
  • Support C#, VB.NET, etc.
  • Multiple file formats support
How to Generate EAN-13 in Crystal Reports
EAN-13, a superset of UPC-A, was implemented by the International Article Numbering Association in Europe. It is 13 digits long used worldwide for marking product sold at point of sale. EAN-13 has the following structure: 2 or 3 digits for Number System or Country Code, 5 or 4 digits for Manufacturer (Company) Code or prefix, 5 digits for Product Code and 1 digit for checksum.
EAN-13 Generator SDK for Crystal Report is one function of Barcode Generator for Crystal Report to create & display EAN-13 in an efficient and accurate way in your Crystal Report.
Crystal Report EAN-13 Generator can be used as a DLL without loaded on a form. The managed code is 100% written in C#, and source code with purchase of developer license is available.
With Crystal Report EAN-13 Generator, developers are free to generate EAN-13 as well as other linear and 2D barcodes in Crystal Report that displayed as high quality Gif, Tiff, Bmp, Png or Jpeg images. Valid value is pre-configured in barcode library for easy creation.
EAN-13 Generator for Crystal Report Features
Encodable Characters Support to encode:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Redistribution Once installed in a report, all other reports support barcode generation without other plug-ins
Supplementary Barcode Support EAN-13+2 and EAN-13+5 generation in Crystal Report
Checksum Calculation Automatically compute checksum character for EAN-13. Only input 12 digits, an EAN-13 generates.
Size Flexibility Easy to customize barcode sizes including X dimension, Y dimension, image width, etc via VB.NET and C#
High-quality Image Generate high quality Gif, Tiff, Bmp, Png or Jpeg image in image files as well as in the memory
EAN-13 Generator for Crystal Report Requirements
Windows OS
-Microsoft Windows 7
- Windows Server 2008
- Windows Vista
- Windows Server 2003
- Windows XP
Development Environments
- .NET 2.0/3.0/4.0
- C#, VB.NET, Managed C++, Borland Delphi for.NET
- Visual Studio 2005/2008/2010
- Crystal Report (Runtime)
Install EAN-13 Generator for Crystal Report
  1. Download Barcode Generator for Crystal Report Free Trial and unzip;
  2. Add "BusinessRefinery.Barcode.web.dll" to your ASP.NET project reference;
How to Generate EAN-13 in Crystal Report
  1. Download Barcode Generator for Crystal Report and unzip. In the demo file, there are a "BarcodeDemoData.mdb" that including "ID", "CustomerId", and "CustomerName", and a "CustomerDataSet.xsd".
  2. Open your Visual Studio, create a new web project with "ASP.NET Crystal Reports Web Site" as template;
  3. Create a new report "Using the Report Wizard", and choose "Standard", and click "OK";
  4. In "Data" form, double click "Create New Connection", and expand "ADO.NET".
  5. In "ADO.NET" form, select "CustomerDataSet.xsd" file in your downloaded package, and click "Finish" button.
  6. 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";
  7. In CrystalReport1.rpt, add field "Barcode" to the report Section 3;
  8. Add "BusinessRefinery.Barcode.web.dll" to your project reference in "Solution Explorer";
  9. Right click "Default.aspx" in "Solution Explorer" and choose "View Code";
  10. Copy the following code accordingly and run the project.
Sample Coding of Creating EAN-13 in Crystal Report
protected void Page_Load(object sender, EventArgs e)
OleDbConnection aConnection = new OleDbConnection(
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Demo/BarcodeDemoData.
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.Type = BarcodeType.Ean13;
foreach (DataRow dr in ds.Tables[0].Rows)
barcode.Data = (int)dr["CustomerId"] + "";
byte[] imageData = barcode.drawBarcodeAsBytes();
dr["Barcode"] = imageData;
Protected Sub CrystalReportViewer1_Init(ByVal sender As Object, 
ByVal e As System.EventArgs) Handles CrystalReportViewer1.Init
Dim aConnection As New OleDbConnection
Data Source=C:/Demo/BarcodeDemoData.mdb"
Dim dataAdapter As New OleDbDataAdapter("select * from Customer",
Dim ds As 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", GetType(Byte())))
Dim barcode As New Linear()
barcode.Type = BarcodeType.Ean13
For Each dr As DataRow In ds.Tables(0).Rows
barcode.Data = CInt(dr("CustomerId")) & ""
Dim imageData As Byte() = barcode.drawBarcodeAsBytes()
dr("Barcode") = imageData
End Sub