KA.Barcode for .NET Suite
How to Generate EAN-128 in C# Application
How to Generate Linear EAN-128 Barcode Images in C#, ASP.NET, WinForms, Crystal & RDLC

C# GS1-128 Barcode Generator
How to creating ean-128, gs1-128 barcode with free c# example

  • Mature barcode encoder SDK for generating GS1-128/EAN-128 1D barcodes in C#.NET
  • Written in managed C#.NET, supporting .NET Framework 2.0, 3.0, 3.5 and above versions
  • Support GS1-128 barcode generation in ASP.NET, WinForms, Crystal Reports, RDLC Reports etc
  • Support Gif, Bmp, Png, Jpeg/Jpg & Tiff image formats for generated GS1-128 barcodes
  • Enable various barcode options including size, color, font, checksum calculation, orientation, etc.
  • Grant royalty-free and reliable developer license for this C# EAN-128 barcode SDK
C# EAN-128 Barcode Generator Introduction
KA.Barcode Generator for .NET Suite is a highly versatile barcode encoder package for developers to easily add barcoding function in VS.NET, so you can print and integrate GS1-128 image and other linear & bi-dimensional barcodes in C#.NET development environment. This page will guide you to create EAN-128 programmatically in C#. In addition, you can also adjust barcode settings for the generated GS1-128 images, like bar width, image width & height, margins, etc.
What Is An EAN-128 Barcode
GS1-128 is a self-checking linear barcode also named as EAN-128, UCC-128, UCC/EAN-128, GTIN-128. It has the same encoding patterns as that of a Code 128 barcode, but it can encode all ASCII characters including A-Z, a-z, numeric digits and more.
GS1-128 Valid Data Sets
  • All 128 characters of ASCII

  • Extended ASCII. Values 128-255 in accordance with ISO 8859-1

Create GS1 Compatible EAN-128
  • In barcode data setting CodeToEncode, around AI code with "()", and followed by AI data, such as "(02)225(03)33344". Here "02", "03" are the AI code, "225", "33344" is the AI data,

Generate Barcode Image in Specified Width and Height
  • Set property AutoSizeAdjust to true

  • Set property DPI to be the same or higher as your printer's resolution

  • Set property BarcodeUnit to inch or cm

  • Set property BarCodeWidth and BarCodeHeight to your required image width and height
Create GS1-128 in ASP.NET Using C#
KeepAutomation barcode generator for .NET allows developers to easily stream EAN-128/ GS1-128 in ASP.NET web applications. EAN-128 barcodes can be generated in Gif, Png, Jpeg, Bmp & Tiff image formats and be inserted into ASP.NET websites through simple component drag-and-drop. You can also copy files to Microsoft IIS and create EAN-128 by adjusting URL (Generated images can be saved for future use). In addition, users can also create EAN-128 images in C# class library. Fore more information, please check this link How to print barcode in Visual C# with ASP.NET web control.
Make EAN-128 in .NET Windows Forms Using C#
This barcode generator for .NET Suite SDK library is fully compatible with Visual Studio 2005 and above versions. It enables users to paint dynamic EAN-128 barcodes in Windows Forms applications. You can draw an EAN-128 directly on the form by control drag-and-drop. Or you can create a barcode with Visual C#.NET programming in class library. Click here to get more information: How to create barcode in .NET WinForms with Visual C#.
Print GS1-128 in Crystal Reports Using C#
You can easily make and embed multiple EAN-128/ GS1-128 barcode images in Crystal Reports with this .NET barcode encoder dll library. Installation is quite easy with just a few steps and no more barcode fonts or third party tools are required. Please follow the detailed generation guide to know how: How to create barcode in Crystal Reports with Visual C#.
Embed EAN-128 in RDLC Reports Using C#
Written in Visual C# code, this .NET control supports full integration into .NET Framework as well as Visual Studio 2005 and above versions. With this dll, developers can easily integrate EAN-128 barcode images in Visual Studio ReportViewer Local Reports. Here is the guide: How to create barcode in RDLC Reports with C# code.
GS1-128 Property Settings
Generate GS1-128 in .NET Applications with C#
This .NET barcode encoder supports creating high-quality EAN-128 barcodes in .NET applications using C# class library. Here is a complete generation guide for you with detailed C# sample code. Copy the sample code to your barcoding project and you will get the generated EAN-128 barcodes! You can also reset the generated EAN-128 barcode parameters.
C# Sample code
     BarCode ean128 = new BarCode();
ean128.Symbology = KeepAutomation.Barcode.Symbology.EAN128;

// Input valid EAN 128 encoding data: All ASCII characters, including 0-9, A-Z, a-z, and special characters.
ean128.CodeToEncode = "(01)225";

//Apply checksum for EAN 128 barcode.
ean128.ChecksumEnabled = true;
// Display checksum in the EAN 128 barcode text
ean128.DisplayChecksum = true;

// EAN 128 unit of measure, Pixel, Cm and Inch supported.
ean128.BarcodeUnit = BarcodeUnit.Pixel;
// EAN 128 image resolution in DPI.
ean128.DPI = 72;

// EAN 128 image formats in Png, Jpeg/Jpg, Gif, Tiff, Bmp, etc.
ean128.ImageFormat = ImageFormat.Png;

// Set EAN 128 image size

// EAN 128 bar module width (X dimention)
ean128.X = 3;
// EAN 128 bar module height (Y dimention)
ean128.Y = 60;
// Image left margin size, a 10X is automatically added to go with specifications.
ean128.LeftMargin = 0;
// Image right margin size, a 10X is automatically added to go with specifications.
ean128.RightMargin = 0;
// EAN 128 image top margin size
ean128.TopMargin = 0;
// EAN 128 image bottom margin size
ean128.BottomMargin = 0;

// Orientation, 90, 180, 270 degrees supported
ean128.Orientation = KeepAutomation.Barcode.Orientation.Degree0;

// Set EAN 128 human readable text style

// Display human readable text
ean128.DisplayText = true;
ean128.TextFont = new Font("Arial", 10f, FontStyle.Regular);
// Space between barcode and text
ean128.TextMargin = 6;

// Generate EAN 128 barcodes in BMP image format

/* Create EAN 128 barcodes in Stream object
ean128.generateBarcodeToStream(".NET System.IO.Stream Object");

Draw & Print EAN 128 barcodes to Graphics object
ean128.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");

Generate EAN 128 barcodes & write to byte[]
byte[] barcodeInBytes = ean128.generateBarcodeToByteArray();

Generate EAN 128 barcodes & encode to System.Drawing.Bitmap object
Bitmap barcodeInBitmap = ean128.generateBarcodeToBitmap();