C# Barcode Library How-Tos
PM > Install-Package BarcodeLib.Barcode


Home > .NET Barcode > C# Barcode Generation Guide > C#.NET GS1-128/EAN-128 Generator Component Tutorial

GS1-128 Generator Library for .NET in C# Class

How to Generate & Draw GS1-128 Barcodes in .NET with C# Class
  • Mature GS1-128 barcode generator Component for C#.NET in use for more than 10 years
  • Written in managed C#, supporting .NET Framework 2.0 and greater
  • Easy to install C#.NET barcode generator dll library into .NET developments
  • Generate GS1-128 barcode in ASP.NET & Windows software with C#.NET
  • Draw GS1-128 image in Reporting Services & Crystal Report & RDLC Reports
  • Able to output generated GS1-128 barcodes to several C# objects


C#.NET Linear GS1-128 Barcode Overview

GS1-128 (UCC/EAN 128) is a high-density linear barcode. Derived from Code 128, GS1-128 has similar symbol structure and similar encodable data. But different from Code 128, GS1-128 could not only encode data but the meanings that the data has carried. Through using a serial of Application Identifiers, GS1-128 could encode information like production date, weight or something else.





Guide to Generate GS1-128 Images in C#.NET Class

  1. Create a new Linear object to create GS1-128 barcode
  2. Choose barcode type using property Type as BarcodeType.EAN128
  3. Set GS1 data text and you can print GS1-128 barcode to an image file or image object in C# memory.
Linear barcode = new Linear();
barcode.Type = BarcodeType.EAN128;
barcode.Data = "(00)395012345678912345";



Print GS1-128 barcode without text label

You can set property ShowText to false to print GS1-128 barcode without text label in C# application.





Guide to Create GS1-128 Barcodes in C# ASP.NET Web Project

  1. Add Barcodelib.Barcode.ASP.NET.dll to your web project.
  2. Or add Barcodelib.Barcode.ASP.NET.dll to the Toolbox.
  3. Open the folder barcode in the downloaded trial package and copy files "linear.aspx", "linear.aspx.cs" to your project folder.
  4. Drag LinearASPNET from the Toolbox and drop it on the split part of your aspx page. Then you will see a barcode image. (Note: this barcode generation SDK default barcode image is Code 128.)
  5. Click the produced barcode image and change barcode type to EAN 128 in the Properties Window or generate a GS1-128 barcode with above C# barcoding sample code.




Guide to Generate GS1-128 Barcodes in C# WinForms Project

  1. Add BarcodeLib.Barcode.WinForms.dll from the trial package to your Windows Forms project.
  2. Or Add BarcodeLib.Barcode.WinForms.dll to your Visual Studio Toolbox.
  3. Drag LinearWinForm to your windows form and click generated image. Then, adjust its barcode type to EAN 128 in the Properties Window or create a GS1-128 image with above C# barcoding sample code.
Barcode Images Supported by C#.NET Barcode Generator DLL
C# 1D Barcode Generation:
C# 2D Barcode Generation:
Generate Linear Barcodes with C#.NET Barcode Generator Control: Codabar, Code 11, Code 2 of 5, Code 39, Code 93, EAN-8, EAN-13, Interleaved 2 of 5, ITF-14 (UPC Shipping Container Symbol), Code 128, EAN 128/GS1 128, MSI Plessey, Intelligent Mail, Planet, Postnet, RM4SCC (British Royal Mail), UPC-A, UPC-E.
Generate 2D Barcodes with C#.NET Barcode Generator Control: Data Matrix, PDF 417, QR Code.