C# EAN 128 generator, parser: create ean 128, gs1-128 barcode with free c# example source code
- Easy linear EAN128 barcoding in .NET projects like ASP.NET web applications, WinForms, Crystal Reports, etc
- Create, print high-quality 1D EAN128 / GS1-128 barcodes in Png, Jpg, Gif, Tiff, and Bmp image formats
- Compatible with latest GS1 specifications for EAN128 for valid image generation in C#
- Generating, Creating EAN128 linear barcode and adjust parameters in Pixel, Cm and Inch
- Draw and export high-quality .NET Code 128, UPC-E VB.NET, .NET WinForms Code 128 barcodes as you wish
- Easily adjust EAN128 module width, height, image width and image height in C#.NET class
- Drawing EAN128 and adjust quiet zones through image margin setting on four sides
- Checksum automatically calculated and added for the generated 1D EAN128
- Implementing dynamic barcodes, like UPC-E C#, C# PDF417, VB.NET UPC-A, EAN-13 Excel in your projects
- Mature EAN-128 barcode creator for Visual C# with accurate image output for all printers
EAN-128 is also named GS1-128, UCC-128, UCC/EAN-128, GTIN-128. KeepAutomation barcode generator, an advanced barcoding creator component SDK, is designed for creating & drawing EAN-128 image with best quality in Visual C#.NET. With a user-friendly interface, developers can easily generate EAN-128 images with a fixed size through the parameter settings with C#.NET.
This page is a detailed guide to help developers draw, print an EAN-128 image and resize it by adjusting barcode properties in C#.NET with KA.Barcode Generator for .NET Suite. Here are two more tutorials for data encoding and image setting.
Install KA.Barcode Generator for .NET Suite into C#.NET Project
Add Reference: Add "KeepAutomation.Barcode.Window.dll" to your C#.NET project reference.
How to Generate, Resize EAN128 Images in C# Class
Copy the following C#.NET Code onto your project to create an EAN128 barcode image
BarCode ean128= new BarCode();
ean128.Symbology = KeepAutomation.Barcode.Symbology. EAN128;
ean128.CodeToEncode = "GS1-128";
EAN128 Barcode Unit
For KA.Barcode Generator for .NET Suite, three units of measure are provided for EAN128 image generation in C#.NET, which include Pixel, Cm and Inch. Default value is Pixel, and you can change it through the demo code below.
ean128.BarcodeUnit = BarcodeUnit.Cm;
A professional barcode generator control SDK library, KA ....
How to Generate QR Code in VB.NET application. How to generate 2D QR Code barcode images in VB.NET, ASP.NET web applications, and windows forms. ....
Also programmatically create GS1 compatible QR Code tags in VB.NET programs. VB.NET QR Code barcode maker is a best QR Code Barcode Generation...
QR Code in C#.NET class library; Dynamic barcode components, such as .NET barcode & barcode Word, are provided; Print valid matrix barcode QR...
Support to print 2D barcode in ASP.NET as well, including VB.NET QR Code, Codabar VB.NET, .NET WinForms PDF417; ....
EAN128 X Dimension (Bar Width)
EAN128 X dimension is the module bar width, measured in Pixel, with 1 pixel as the default value. If you need wider bar for EAN128, please follow the C# sample code below.
EAN128 Y Dimension (Bar Height)
The EAN128 Y dimension is the bar height of the EAN128 image. Default value is 50 pixels. If you want a taller or shorter EAN128 image, just copy the Visual C# demo code below.
EAN-128 Barcode Margins / Quiet Zones
The GS1 General Specification requires that a minimum 10X margin (Quiet Zone) is needed on the left and right side of the EAN128 image. This 10X quiet zones are automatically added by KA.Barcode Generator. However, if users want to widen the margin, you can simply adjust the margin value with the C# code below.
ean128.LeftMargin = 2;
ean128.RightMargin = 2;
ean128.TopMargin = 2;
ean128.BottomMargin = 2;
EAN-128 Barcode Width and Barcode Height
In case users want to generate an EAN128 image within a specific space, you might need to adjust the EAN128 BarCodeWidth and BarCodeHeight. You can customize these two parameters with the code below.
Please note that once you have input data, according to the encoding pattern in the GS1 specification, you can actually calculate a minimum EAN128 image width. So if the width you set is less than the minimum value, KA.Barcode will automatically generate a valid image with minimum width. If larger, extra margins will be added on both sides horizontally.
ean128.BarCodeWidth = 200;
ean128.BarCodeHeight = 70;
EAN-128 Text Margin
If you want to adjust the space between the human readable text and the bar code image above, you can customize Text Margin with the C# code below. Default value is 6 pixels.