How to generate UCC/EAN-128 in Crystal Reports for .NET using .NET Barcode SDK for Crystal Reports
Avapose.Barcode for Crystal Reports
  • Easily print GS1-128 in Crystal Reports in ASP.NET and .NET WinForms
  • Generate high quality GS1-128 barcode images in Crystal Reports
  • Mature barcode creator library & DLL for Crystal Report .NET
Barcode Crystal Report > Barcode in Crystal Report > Linear > .NET EAN 128 in Crystal Report
GS1-128 Barcode Generation in Crystal Report
  • Easily install & integrate GS1-128 generation SDK into Crystal Report
  • GS1-128 image generation in Windows Forms and Web Forms for Crystal Report
  • Completely run in Visual Basic.NET and Visual C#
  • GS1-128 parameters are pre-configured in barcode control for easy generation
  • Provide managed code written in C# with strong-named, digital-signed and time-stamped DLL
  • Easily display Application Identifier in GS1-128 barcode with high readability
  • Display GS1-128 as image in gif, tiff, bmp, png or jpeg format
  • Compatible with all languages and locales including Double Byte versions of Windows
Avapose GS1-128 Barcode Generator Control 100% runs in VB.NET and C# to generate high quality GS1-128 linear barcode images in Crystal Report. Barcode parameters are pre-configured in this barcode SDK & DLL for easy generation, but all parameters are in high flexibility and customization for changing to make desired GS1-128.
Barcode Generation for Crystal Report for .NET - GS1-128 Information
GS1-128 is an application standard of the GS1 implementation using Code 128 barcode specification. Besides encoding data, GS1-128 also provides a method of defining the meaning of the data by defining a list of "Application Identifiers" (AI's). Because of the standardization of GS1-128, it is widely used in non retail field in the world.
.NET GS1-128 generator control for Crystal Report encodes:
  • Standard ASCII values from 0 to 127
  • Extended ASCII values from 128 to 225
Barcode Generation for Crystal Report for .NET - GS1-128 Generation


Before you generate GS1-128 in Crystal Report applications, you need to install:
  • Windows XP, Windows Vista, Windows 7, etc
  • Any .NET Framework environment
  • Microsoft Visual Studio 2005/2008/2010
  • Crystal Report for .NET (run-time support)
  • Avapose.Barcode for Crystal Report

Generate GS1-128 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");
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

ds.Tables[0].Columns.Add(new DataColumn("Barcode", typeof(byte[])));
Linear Barcode = new Linear ();
Barcode. LinearBarcode = Linear Barcode. Ean128;
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 = Linear Barcode. Ean128
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 GS1-128 Barcode Integration & Generation Information
The following GS1-128 (EAN/UCC128) 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 Barcode Generator for Crystal Report a few weeks ago, and it works pretty well
Carios Louis, Eureka Software Ltd,UK