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 DataBar barcode family (formerly RSS - Reduced Space Symbology) as well as other barcode standards
GS1 DataBar is a family of linear barcode symbologies used within the GS1 System.
GS1 DataBar-14 encodes AI (01) in a linear symbol that can be scanned omnidirectionally by suitably programmed slot scanners.
GS1 DataBar Limited (formerly RSS Limited) encodes AI (01) in a linear symbol for use on small items that will not be scanned in an omnidirectional scanning environment.
GS1 DataBar Expanded (formerly RSS Expanded) encodes GS1 System primary item identification plus supplementary AI Element Strings, such as weight and "best before" date, in a linear symbol that can be scanned omnidirectionally by suitably programmed slot scanners.
GS1 DataBar-14 Stacked is a variation of the GS1 DataBar-14 Symbology that is stacked in two rows and used when the normal symbol would be too wide for the application. It comes in two versions: a truncated version used for small item marking applications and a taller version that is designed to be read by omnidirectional scanners.
In this guide you will learn how to print GS1 DataBar barcodes with Zebra ZPL-based or EPL-based 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 GS1 DataBar Omnidirectional (formerly RSS-14)
The value to encode is (01) 00614141999996. Please note that you must not specify the AI number i.e. 01 nor the checksum i.e. last 6 number to the Code property or in the BarcodeItem constructor.
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 GS1 DataBar Limited (formerly RSS Limited)
The value to encode is (01) 00614141999996. Please note that you must not specify the AI number i.e. 01 nor the checksum i.e. last 6 number to the Code property or in the BarcodeItem constructor.
Add another 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 GS1 DataBar Expanded (formerly RSS Expanded)
The value to encode is (01) 00614141999996. Please note that you must not specify the AI number i.e. 01 nor the checksum i.e. last 6 number to the Code property or in the BarcodeItem constructor.
NOTE
GS1 DataBar Expanded (formerly RSS Expanded) IS NOT supported by EPL-based printers.
Add another button control onto the form and paste the following code in the click event handler of the button:
Example of encoding GS1 DataBar Stacked (formerly RSS-14 Stacked)
The value to encode is (01) 00614141999996. Please note that you must not specify the AI number i.e. 01 nor the checksum i.e. last 6 number to the Code property or in the BarcodeItem constructor.
Add another 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 GS1 DataBar Stacked Omnidirectional (formerly RSS-14 Stacked Omnidirectional)
The value to encode is (01) 00614141999996. Please note that you must not specify the AI number i.e. 01 nor the checksum i.e. last 6 number to the Code property or in the BarcodeItem constructor.
NOTE
GS1 DataBar Stacked Omnidirectional (formerly RSS-14 Stacked Omnidirectional) IS NOT supported by EPL-based printers.
Add another button control onto the form and paste the following code in the click event handler of the button:
Example of encoding GS1 DataBar Truncated (formerly RSS-14 Truncated)
The value to encode is (01) 00614141999996. Please note that you must not specify the AI number i.e. 01 nor the checksum i.e. last 6 number to the Code property or in the BarcodeItem constructor.
Add another 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.
Run the sample Windows Forms application and test it.