Store label format and recall for printing using ZebraDesigner 3

Article ID: 70138137

Issue / Question

Creating and storing a variable label format in printer memory.

Applicable To

All Zebra Barcode Printers and ZebraDesigner Software.

Resolution / Answer

1. Design the Format in ZebraDesigner 3

Open up ZebraDesigner 3 and create a new label.  You will be asked to associate your newly created label with a printer.  
Assuming that the ZebraDesigner driver is installed, select your printer.  For our example, we will proceed with a ZD620 as our printer.



At this point, ZebraDesigner 3 will ask for you to configure your label to your liking.  This will include properties such as label margins, orientation, etc.  
Once completed, you will have a blank canvas on which to draw.  Insert a text field by clicking on the 'Text' option on the far left.  
Use the text tool to draw a text field to the label, and when prompted, chose 'variable text' as the type:



At this point, you can optionally include prefix or suffix data.  For our sample, we will leave this blank and instead hit finish.  
In this same manner, we create two more dynamic text fields on our canvas.  We also insert a static text field towards the top of our label that says "Test Label".


 

2.  Save the template to the printer

First, we save the ZebraDesigner 3 project to our computer.  To do so, hit File > Save, and select a location and file name.  
To save the template to the printer, simply choose the file menu and select 'Store' > choose "Internal Flash" for Store variant > Store to printer.  
This causes the label that we have designed to be stored to the printer's memory, making it available for recall later.  
The format will be stored with the same name as the ZebraDesigner file name.  
In our case, the format will be stored to our ZD620 as "Label1.fmt' since our ZebraDesigner file is called "Label1',


 

3.  Recall the template with printer language commands

Depending on your printer model, you may have to recall the format with ZPL or CPCL.  
Here we demonstrate the means of recalling the label format for printing with both ZPL and CPCL.  
We will use Zebra Setup Utilities, available for free on Zebra.com (see Helpful Information for download), to send the printer language commands. 

Open up Zebra Setup Utilities and select your printer.  Next, select 'Open Communication With Printer':


 

We check to make sure that out format has been stored to the printer by sending the following command:

 

! U1 getvar "file.dir"



This command is case-sensitive and must end up with a carriage return.  Click 'Send to printer" to see the files stored to our printer.  
You should see a format corresponding to the file that you create in ZebraDesigner.

Now we can recall the format for printing by sending the following stream of data.  For our example, send the following CPCL commands to the printer.  
You can reference the CPCL commands in the CPCL manual, which is available here: Read More>>

If you are using a ZPL printer, you can alternatively use the following ZPL to recall the format:

^XA
^XFE:LABEL1.ZPL^FS
^FN11^FDThis is line 1^FS
^FN12^FDThis is a number: 333333^FS
^FN13^FDHello World!^FS
^XZ

 

Sending the CPCL or ZPL commands should result in a valid print-out, with the sent printer language data populating the label:

 

 

For further details Read More>>

Helpful Information

ZPL Programming Manual  Read More>>

+ Applicable Products

  • ZebraDesigner3
  • zebradesigner3