Designing Labels SciNote cover 1115x465

Designing ZPL label templates with ZebraDesigner

4 min read

We recommend creating your Zebra Programming Language (ZPL) label template in a specialized label design software. There are many third-party software out there that are able to generate ZPL files; you can use any of them, and then transfer the ZPL code into SciNote and use it as a label template. Zebra offers two of such software: ZebraDesigner Essentials 3 (freely available), ZebraDesigner Professional 3 (paid). Here, we will go through the steps of creating ZPL label templates using the freely available ZebraDesigner Essentials 3.

Note ZebraDesigner programs are not compatible with macOS. Consult your IT administrator on how you can run the software on your Mac computer (e.g., using virtual machine), or use another ZPL design software program that is capable of outputting ZPL files.

Before using ZebraDesigner Essentials 3, connect your label printer to your computer in order to print labels.

Which Zebra printers are compatible and how to connect them with SciNote?

Design a label in ZebraDesigner Essentials 3

To create a new label template from scratch, follow the steps below:

1. Start ZebraDesigner Essentials 3 and click on “Create a New Label.”

design labels zebra

2. Select your Zebra printer and click “Next.”

2-ZebraDesigner-Select-Printer

3. Select the type of labels you are using (most commonly it’s a roll of labels) and click “Next.”

3-ZebraDesigner-Select-Labels

4. Select the label layout (typically, the default portrait setting works well) and click “Next.”

4-ZebraDesigner-Label-orientation

5. Select the dimensions of your label, and then click “Next” and then “Finish.”

5-ZebraDesigner-Label-dimensions

6. Design your label

Add predefined elements (text, barcode, picture, rectangle, line, ellipse) to your label, reposition them and resize them when needed. Several elements have options that you can modify, e.g., barcode’s standard, position, what data it encodes, etc.

You can also add “field codes” to your label template that correspond to specific information within SciNote. These field codes have specific text within brackets (e.g., {{ITEM_ID}}, and act as placeholders that SciNote would recognize. At print time, SciNote will replace these codes with actual information from inventory items within SciNote. These field codes can also be introduced after you add the label template into SciNote. We will go over field codes in more details in a later section.

For example, we added the following items on the label from top to bottom:

Text; Data: Fixed data “Property of SciNote”, Font “Zebra 0” 8. At print time, this exact text will be printed on the label.

Barcode; type: QR, Source: fixed data “{{ITEM_ID}}”. At print time, SciNote will dynamically encode the inventory item’s ID into the QR code. When you will scan the code with a barcode scanner, it will display the actual Inventory item ID.

Text; Data: Fixed data “ID {{NAME}}”, Font “Zebra 0” 8. At print time, SciNote will dynamically replace the field code “{{NAME}}” with an actual inventory item name, so the information on the printed label could for example be “ID: IT1234”

Text; Data: Fixed data “ID {{ITEM_ID}}”, Font “Zebra 0” 8. At print time SciNote will dynamically replace the field code “{{ITEM_ID}}” with an actual inventory item ID, so the information printed on the label could for example be “DNA Sample 031”.

6-ZebraDesigner-Label-design

7. Print the label to File and save the .prn file to your computer.

This is an example of a .prn label file opened in NotePad text editor. This text is the Zebra Programming Language (ZPL) code for your label template.

8-Label-template-ZPL-code

8. Create a new label template in SciNote using the ZPL code from the .prn file.

Open “Templates” and then “Label templates” in SciNote, and click on “create a new Label template.”

Copy and paste the entire ZPL code from .prn file generated in ZebraDesigner into “ZPL template code” field in SciNote. Then, name the label and add a label description if required. Click “Save template code”. You label is now listed in SciNote label templates and is available for printing.

To preview your label, expand “Options” and enter your label dimensions and your printer’s dpi. Consult a person in charge of the label printer to help you get this information.

If you are familiar with ZPL code, you can edit the ZPL code directly in the “ZPL template code” field in SciNote. You can then save changes and regenerate a preview of the label.

If you add some field codes into the label template, the preview of the label in the label templates screen will still show this as text. You can preview the label with correct inventory items data at a later stage when you start printing.

How to print labels in SciNote?

Inserting SciNote inventory data placeholders into ZPL template

SciNote understands specific pieces of text as placeholders for inventory item columns. We call them field codes.

To add specific field codes into your label template, open the label template in “Label templates” screen by clicking on a listed label template, click on the ZPL template code field, and you can start editing it.

Open the Insert field code dropdown. This dropdown lists all the columns for which you can add field codes onto labels. Columns are grouped by inventories to help you find the one you need faster.

To insert a field code to your label template, simply click on the name of the column in the dropdown. SciNote will insert this code into the ZPL template code at the cursor position.

You can add several field codes to your label template. Do make sure that the field codes are from the same SciNote inventory. This is because the label contains information of only one inventory item; field codes from other inventories that do not exist in the inventory of this particular item will fail to print.

Examples of field codes are:

Item name: {{NAME}}

Item ID: {{ITEM_ID}}

Added on: {{ADDED_ON}}

Stock: {{c_Stock}}

Genetic marker custom column: {{c_Genetic marker}}

The structure of field codes for custom columns is based on column names, with added prefix “c_” before the column name and brackets – {{ before the column name and }} after the column name.

At print time, SciNote will replace these codes with actual inventory item data.

Insert-Column-Field-code

More information on label printing