Issue / Question
Provide a single page with examples of code used in different programming languages to print to our ZPL printers
Applicable To
ZPL, various programming examples, various programming languages
Resolution / Answer
Zebra Programming Language (ZPL) is the command language used by all ZPL compatible printers. It is a command based language used by the printer as instructions for creating the images printed on the labels. This document contains links to manuals, examples, and specific information related to specific ZPL commands.
The ZPL Programming Manual contains all the information on the ZPL Commands Read More>>
See how to create your own labels using ZPL by reviewing these exercises:
Read More>>
Read More>>
ZPL Tips
QR Code Position is affected by the ^BY height parameter
Autoexec Example - Allows loading a form or command on power up
Code 128 General instructions - Description of the Code 128 command in ZPL2
UCC/EAN code 128 example - How to print a UCC/EAN barcode using Code 128
Maxicode example - How to print the Maxicode Barcode for UPS applications
Centering a Code 128 Barcode Interpretation Line when using an alternate font
Converting Graphics with the Driver - How to convert a graphic for use in ZPL2
Converting Graphics - with ZebraNet Bridge
Downloading Fonts - Instructions for downloading windows fonts to the printer
Unicode Printing - Using the free Swiss 721 Font
Concatenation (^FT) - Concatenation: to link together in a series or chain
Printing Euro(€) Symbol - How to print a Euro Symbol in ZPL2
Printing the Trademark(™) Symbol with ZPL
Printing a Short Dash (-) - How to substitute the short dash for a standard long dash
Special Character printing - Using the ^FH or ^CI command to print special characters.
Reprint - Reprinting after an error or reprinting on demand
Limiting characters in a ZPL Text Field using Text Block
ZPL Command Details
^B7 PDF417 Barcodes Read More>>
^BQ QR Code information Read More>>
- QR Code B Switch details Read More>>
- QR Code addinga CR/LF to the data Read More>>
- QR Code Switch Details Read More>>
^BX Datamatrix (Data Matrix) barcode Read More>> (includes when rectangular capability was introduced)
^CI Change International Font/Encoding Read More>>
^DF Stored Formats and adding variables Read More>>
~DY Command Algorithm ZB64 Compression information Read More>>
~EG or ^EG Erase Graphic Command Read More>>
^FL - Font Linking (Linking multiple fonts n a single line of text) Read More>>
^GF Graphic Field Command details Read More>>
~HS Host Status Command
~JD Enable Hex Dump Command Read More>>
~JK Delayed Cut Command Details Read More>>
~JS Backfeed Sequence Details Read More>>
^JZ and ^JJ Reprint Command details Read More>>
^LH Label Home Command Details Read More>>
^LL Label Length Command Read More>>
^XB Inhibit Backfeed Read More>>
Other code examples:
VB Example - Code examples for embedding ZPL in Visual Basic
VB.Net Example - Code examples for embedding ZPL in VB.Net
Visual C++ Example - Code examples for embedding ZPL in C++
Java Example - Java Examples for ZPL, EPL and CPCL