GS1-128 Barcode Generation in Crystal Reports

How to Create EAN-128 Barcode in Crystal Reports Using C# or VB Demo
  • Robust and easy-to-use barcode control in .NET Framework 2.0, 3.0, 3.5 and 4.0
  • 100% C# managed code provided with strong-named signature and signed DLL
  • Provide VB and C# sample codes for easy and quick EAN-128 barcode generation
  • Generate GS1-128 barcode image in Crystal Report in Gif, Tiff, Bmp, Png and Jpeg formats
  • Simple to generate Application Identifier for GS1-128 with easy-to-use method
  • Easily encode returns, tabs and other functions such as GS and RS though tilde function
  • Print and draw scannable & readable GS1-128 image according to its specification
Introduction of Crystal Reports EAN-128 Barcode Control
KA.Barcode Generator for Crystal Reports is a robust .NET component that provides a unique and effective solution to generate more than 20 types of the most popular barcode symbologies in Crystal Reports with high quality. The generated barcodes can be rendered in many popular image formats, such as Gif, Tiff, Bmp, Png and Jpeg.
Description of EAN-128 Barcode
EAN-128, also named as GS1-128, UCC-128 & GTIN-128, is a variable-length and self-checking linear barcode symbology that is capable of encoding all the ASCII characters.
  • EAN-128 Encodable Characters: Standard ASCII characters and Extended ASCII characters
  • EAN-128 Structure: Code 128 start character, Code 128 FNC1 character, Application Identifier, Encoded data, Checksum character and stop character
Download of Crystal Reports EAN-128 Barcode Control
Download this EAN-128 Barcode Control for Crystal Reports Trial Now! Users are free to download this trial version and it comprises of:
  • User Manual and Order Page
  • End User License Agreement
  • KeepAutomation.Barcode.Crystal.dll
  • KACrystalData.mdb
  • ProductDataSet.xsd
Trial version of EAN-128 Barcode Control for Crystal Reports enables users to create high-quality EAN-128 barcode image in Crystal Reports. As barcode image generated with the trial version will include a "KA Barcode" watermark randomly, this trial version can only be applied to non-commercial applications.
Generation of Crystal Reports EAN-128 Barcode in ASP.NET
  1. Create a new web project with "ASP.NET Crystal Reports Web Site" as template in your Visual Studio.
  2. Establish a new report "Using the Report Wizard", choose "Standard", and click "OK".
  3. In "Data" form, double click "Create New Connection", and expand "ADO.NET".
  4. Add "ProductDataSet.xsd" file in "ADO.NET" form, and click "Finish" button.
  5. In "Data" form, add table "Product" and click "Next".
  6. In "Fields" form, add all three columns in the table "Product" and click "Finish".
  7. Add field "Barcode" to the report Section 3 in CrystalReport1.rpt.
  8. Locate reference "KeepAutomation.Barcode.Crystal.dll" to your project.
  9. Use the sample codes below and run your project.
C# Sample code
     protected void Page_Load(object sender, EventArgs e)
{
OleDbConnection aConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/KACrystalData.mdb");
aConnection.Open();

OleDbDataAdapter dataAdapter = new OleDbDataAdapter("select * from Product",aConnection);
DataSet ds = new DataSet();
dataAdapter.Fill(ds);

//Add the Barcode column to the DataSet
ds.Tables[0].Columns.Add(new DataColumn("Barcode", typeof(byte[])));

BarCode ean128 = new BarCode();
//Barcode settings
ean128.Symbology = KeepAutomation.Barcode.Symbology.EAN128;
ean128.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;

foreach (DataRow dr in ds.Tables[0].Rows)
{
ean128.CodeToEncode = (int)dr["ProductId"] + "";
byte[] imageData = ean128.generateBarcodeToByteArray();
dr["Barcode"] = imageData;
}
CrystalReportSource1.ReportDocument.Load(Server.MapPath("CrystalReport1.rpt"));
CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables[0]);
CrystalReportSource1.DataBind();

}
VB Sample code
     Protected Sub Page_Load(sender As Object, e As EventArgs)
Dim aConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/KACrystalData.mdb")
aConnection.Open()

Dim dataAdapter As New OleDbDataAdapter("select * from Product", aConnection)
Dim ds As New DataSet()
dataAdapter.Fill(ds)

'Add the Barcode column to the DataSet
ds.Tables(0).Columns.Add(New DataColumn("Barcode", GetType(Byte())))

Dim ean128 As New BarCode()
'Barcode settings
ean128.Symbology = KeepAutomation.Barcode.Symbology.EAN128
ean128.ImageFormat = System.Drawing.Imaging.ImageFormat.Png

For Each dr As DataRow In ds.Tables(0).Rows
ean128.CodeToEncode = CInt(dr("ProductId")) & ""
Dim imageData As Byte() = ean128.generateBarcodeToByteArray()
dr("Barcode") = imageData
Next
CrystalReportSource1.ReportDocument.Load(Server.MapPath("CrystalReport1.rpt"))
CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables(0))
CrystalReportSource1.DataBind()

End Sub
Properties of EAN-128 Barcode
Free Trial DownloadCrystal EAN 128EAN 128 PropertiesUsing C#Using VB.NETUsing ASP.NETUsing .NET WinformsData Matrix for Crystal ReportPDF417 for Crystal ReportQR Code for Crystal ReportmoreCodabar for Crystal ReportCode 39 for Crystal ReportCode 128 for Crystal ReportEAN-8 for Crystal ReportEAN-13 for Crystal ReportIntelligent Mail for Crystal ReportInterleaved 2 of 5 for Crystal ReportISBN for Crystal ReportITF-14 for Crystal ReportRM4SCC for Crystal ReportUPC-A for Crystal ReportUPC-E for Crystal Reportmore
KeepAutomation provides complete barcode automation solutions for add barcode display 2-dimensional, barcode generation capacity api, and barcode mobile applications. We recommend the customers use high quality document controls: ASP.NET Document Viewer, ASP.NET MVC Document Viewer, Document Viewer ASP.NET C#, ASP.NET PDF Viewer, ASP.NET Word Viewer, ASP.NET Excel Viewer, ASP.NET PDF Editor, MVC PDF Viewer, ASP.NET Annotate PDF, c# pdf sdk, C# merge PDF files, Split PDF in C#, C# View, edit PDF online , C# Convert PDF to Tiff, C# Convert PDF to text, txt, .net imaging sdk, C# PDF metadata edit from RasterEdge.com.