Reputation: 23
I have got Zebra GC420d. Using zebra 0.0.3a, this is an example of my issue:
label = """
^XA
^FO10,10
^A0,40,40
^FD
Hello World
^FS
^XZ
"""
from zebra import zebra
z = zebra('Zebra_GC420d')
z.output(label)
The printer ignores the command and prints the contents of the variable "label". How can I fix it?
Upvotes: 2
Views: 3596
Reputation: 11
zebra 0.0.3a is for EPL2, Not for ZPL2 !!!! See the site : https://pypi.python.org/pypi/zebra/
Upvotes: 1
Reputation: 2800
It sounds like the printer is not configured to understand ZPL. Look at this article to see how to change the printer from line-print mode (where it simply prints the data it receives) to ZPL mode (where it understands ZPL commands).
Command not being understood by Zebra iMZ320
Basically, you may need to send this command:
! U1 setvar "device.languages" "zpl"
Notice that you need to include a newline character (or carriage return) at the end of this command.
Upvotes: 1