Home  >  Barcode Component Suite for .NET  >  Tutorial on Barcode Creator Integration with C#  >  C#.NET EAN-128 Barcode Generating Library
GS1-128 Barcode Generator Library for C#.NET Application
GS1-128 Barcode Generator Library for C#.NET Application is a mature & advanced barcoding solution for creating & generating EAN128, UCC128, or GS1-128 barcodes in .NET application using C# class code.
Overview - C#.NET GS1-128/EAN-128 Barcode Generator DLL
Derived from Code 128 barcode image, GS1-128 barcode symbology is used to encode shipping/product information. This GS1-128/EAN-128 barcoding library can generate & create GS1-128/EAN-128 barcode images in .NET framework projects using C# class codes.
Related barcoding solutions for generating EAN-128 image in .NET application using C# class codes:
Features - C#.NET GS1-128/EAN-128 Barcode Generator DLL

Technologies of GS1-128/UCC/EAN-128 C# .NET Generator Library

Barcoding Customization of GS1-128/UCC/EAN-128 C# .NET Generator Library

View more about EAN-128/GS1-128 Barcode Properties of C#.NET Barcode Generator Library
C# Code for Creating GS1-128(UCC/EAN-128) Barcode Images in .NET Applications
Create a new linear barcode object in C#.NET
and select the barcode symbology as EAN128 from the barcode type list
BarCode barcode = new BarCode();
barcode.SymbologyType = SymbologyType.EAN128;

Set the data characters that are encoded into EAN128 barcode symbology.
Encodable data set of EAN128 contains,
All 128 ASCII characters.
EAN128 symbol encodes variable length of data characters
The encodable data should be put in the format (AI)+data
barcode.CodeText = "(12)3515558";

// Activate ProcessTilde funtion, after which you can encode data in the format of ~ai2123515558
barcode.ProcessTilde = true;

Enbable the checksum option for EAN128
so that the barcode generator computes check digit to EAN128 automatically
barcode.EnableChecksum = true;

//Set the barcode graphic measurements as Pixel for EAN128
barcode.GraphicsUnit = KeepDynamic.Barcode.Generator.GraphicsUnit.Pixel;

//Assign values of bar width and bar height to EAN128 barcode
barcode.X = 1;
barcode.Y = 75;

//Set the margins around the EAN128 symbol
barcode.LeftMargin = 10;
barcode.RightMargin = 10;
barcode.TopMargin = 10;
barcode.BottomMargin = 10;

// Set EAN-128 barcode image size
barcode.BarCodeHeight = 120;
barcode.BarCodeWidth = 160;

Assign a value to resolution for EAN128 image that is drawn to,
and change the orientation of EAN128 barcode image
barcode.Resolution = 72;
barcode.Rotate = Rotate.Rotate0;

Display the characters encoded into the EAN128 symbology and
set the font style of the characters encoded into EAN128
barcode.DisplayCodeText = true;
barcode.CodeTextFont = new System.Drawing.Font("Arial", 11f, System.Drawing.FontStyle.Regular);

Set EAN128 barcode drawing image format to PNG in C# and
generate EAN128 image in C#
barcode.Format = System.Drawing.Imaging.ImageFormat.Png;
barcode.drawBarcode("C://barcode-ean128-csharp.png"); // other barcode outputting ways: // output generated barcode to byte array byte[] barcodeInBytes = barcode.drawBarcodeAsBytes(); // output generated barcode to Graphics object Graphics graphics = ...; barcode.drawBarcode(graphics); // output generated barcode to Bitmap object Bitmap barcodeInBitmap = barcode.drawBarcode(); // draw created barcode to HttpResponse object HttpResponse response = ...; barcode.drawBarcode(response); // save generated barcode images to Stream object Stream stream = ...; barcode.drawBarcode(stream);
Supported Barcodes by C#.NET GS1-128(UCC/EAN-128) Barcoding Library