Founded in 2004, Neodynamic designs and develops Barcode, Imaging, Labeling & Printing Tools for .NET & Web developers. We are experts in those fields with strong know-how on .NET, ASP.NET, SSRS, PHP & HTML/JS projects. More...
This approach is deprecated. Latest version of ThermalLabel SDK for .NET handles this automatically.
Requirements
Neodynamic ThermalLabel SDK v2.0-v3.0 for .NET
NOTE: This demo works with ThermalLabel SDK v2.0-v3.0 but NOT with v4.0
Microsoft .NET Framework 2.0 (or greater)
Microsoft Visual Studio 2005 / 2008
Microsoft Visual Studio 2005 / 2008 Express Editions (VB, C#, J#, and C++)
Any Zebra Thermal Printer supporting ZPL (Zebra Programming Language) or EPL (Eltron Programming Language)
All Zebra (ZPL-based and EPL-based) thermal barcode printers provide built-in support for printing GS1-128 (previously referred to as UCC/EAN-128 or EAN-128) barcodes as well as other barcode standards.
The GS1-128 (a.k.a. UCC/EAN-128) Symbology is a subset of the more general Code 128 Symbology. GS1-128 was developed to provide a worldwide format and standard for exchanging common data between companies. While other barcodes simply encode data with no respect for what the data represents, GS1-128 encodes data and encodes what that data represents. GS1-128 has a list of Application Identifiers (AI) which can be a 2, 3, or 4-digit number that identifies the type of data which follows. By convention, the Application Identifier is enclosed in parentheses when printed below the barcode (the parentheses are only for visual clarity, and are not encoded in the barcode).
In this guide you will learn how to print GS1-128 barcodes with Zebra ZPL and EPL printers by using ThermalLabel SDK for .NET
IMPORTANT: To test the sample code you must have installed a Zebra ZPL-based or EPL-based thermal printer.
Open Visual Studio 2005 /2008 and create a Windows Forms application.
Add a reference to Neodynamic.SDK.ThermalLabel.dll assembly.
Example of encoding Global Trade Item Number (GTIN) 95012345678903 using AI 01 (Shipping Contained Code) in GS1-128. Add a button control onto the form and paste the following code in the click event handler of the button:
IMPORTANT NOTICE
Although ThermalLabel SDK supports both ZPL and EPL printers, a label design you write using .NET code like C# or VB.NET will not produce the same output printing under ZPL and EPL printers. If you need to support both printer languages in your project then you will have to design two different labels targeting each printer language separately.
Example of encoding and concatenating net weight (4 kg) using AI 31 (Product Net Weight in Kg) with the associated Global Trade Item Number (GTIN) 95012345678903 using AI 01 (Shipping Contained Code) in GS1-128. Add another button control onto the form and paste the following code in the click event handler of the button:
Run the sample Windows Forms application and test it.