|
|
|
|
How to print GS1-128 or UCC EAN 128 barcode with Zebra ZPL-EPL printers and
VB.NET or C# by using ThermalLabel SDK for .NET
Prerequisites
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.
Follow these steps:
-
Download and install latest version of
Neodynamic ThermalLabel SDK for .NET
-
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.
If you need more information or assistance, please contact our
.
|
|
|
|