Guide to Generate EAN-128 in .NET
Generate & create EAN-128 images in C#, VB.NET, ASP.NET web applications, and windows forms
- Simple GS1-128/ EAN-128 bar code generation in .NET applications like ASP.NET web sites and WinForms
- Create and insert EAN-128 in Microsoft SQL Server Reporting Service, Crystal Reports, and Microsoft IIS
- Draw, save EAN 128 in Jpeg, Gif, Png, Tiff and Bmp image formats
- Adjust EAN-128 image width, height, resolution, orientation, color, etc for high-quality output
- Latest GS1 specification pre-configured to ensure scannable EAN-128 image output
- Check digit, quiet zones automatically calculated and added according to standard
- Detailed tutorials provided for EAN-128 creation, data encoding, image & size setting in C#, VB.NET
EAN-128 Introduction
EAN-128 is a self-checking linear barcode also named as GS1-128, UCC-128, UCC/EAN-128, GTIN-128.
EAN-128 Encodable Character Set:
- All ASCII characters, including 0-9, A-Z, a-z, and special characters.
EAN-128 Generation in .NET
Install KA.Barcode for .NET Suite into .NET Projects
1.
Download K.A.Barcode for .NET Suite and unzip.
2.
Add "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Winforms.dll" to reference
3.
Add to the above two barcode controls into your Visual Studio toolbox.
How to Drag & Drop Barcode Control to Generate EAN-128
1.
Add "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll" to .NET Visual Studio ToolBox.
2.
Drag and Drop "BarCodeControl" in the toolbox to the windows forms and a Code 128 image is created.
3.
Change barcode symbology into "EAN128" in the right side property panel and adjust other settings.
How to Generate EAN-128 in C#, VB.NET Programming
using KeepAutomation.Barcode.Bean;
using KeepAutomation.Barcode;
BarCode ean128 = new BarCode();
ean128. Symbology = Symbology. EAN128;
ean128. CodeToEncode = "EAN128";
ean128. X = 2;
ean128.generateBarcodeToImageFile("C://ean128-csharp.png");
Dim ean128 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
ean128.Symbology = KeepAutomation.Barcode.Symbology. EAN128
ean128.CodeToEncode = "GS1128"
ean128.X = 2
ean128.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif()
ean128.generateBarcodeToImageFile("C://ean128-vb-net.gif")
How to Generate EAN-128 in Microsoft IIS
1.
Unzip the trial package and copy "barcode" folder and its contents to your IIS, create a new virtual directory "barcode".
2.
Restart IIS, and navigate to http://localhost/barcode/barcode.aspx?code-to-encode=000128&symbology=11
3.
Now an EAN-128 is generated, you can change barcode properties in the url above, view http parameters here
4.
To add the created barcode images in html or aspx pages, simply insert the following image tag into your web pages.<img src="http://localhost/barcode/barcode.aspx?code-to-encode=000128&symbology=11/">