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)
Neodynamic ThermalLabel SDK for .NET features PrintUtils class which lets you to control your Zebra ZPL-based or EPL-based printer by writing just pure .NET code in VB or C#.
When you need to load or change the roll media, you can instruct to the Zebra ZPL-EPL printer to automatically detect the label's length or height by using AutoSetLabelLength method of PrintUtils class.
When using AutoSetLabelLength method, the thermal printer will feed one or more blank labels depending on the size of the label. The following guide is about how to perform auto setting calibration for label's length.
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.
Add a 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. The Thermal Printer should feed one or more blank labels. After that, you can create a ThermalLabel object (specifying 0-zero to Height property) to verify the new label height was correctly set up by the printer.