How to get ZPL code from a ZebraDesigner label?
Asked Answered
P

4

41

I'm using ZebraDesigner 2.2.2 (Build 2728).

Is there a way to extract the ZPL code from ZebraDesigner? I can't even export it to ZPL file, the only option I have is saving it as .lbl.

enter image description here

Pegasus answered 27/11, 2012 at 14:53 Comment(1)
I have to do this quite often in my job. What I do is 1. pause the printer. 2. send the printjob. 3. Open the spooler folder. 4. Open the job in Notepad and copy out the ZPL. 5. delete the file from the spool. 6. Unpause the printer.Bellow
M
43

You can add a new ZebraDesigner ZPL driver to the system and use a file as the port. Then when you "Print" the document, it will write the ZPL code to the file.

Note that it might have some header information before the first ^XA which you might not need.

UPDATE : (How to add local port on a driver)

  1. Go to Printer Properties
  2. Click on the Ports tab
  3. Click Add Port
  4. Select Local Port and click New port
  5. Enter a filename e.g. C:\output.zpl
  6. Make sure it is checked in the ports list
  7. Now all printing output should go to C:\output.zpl
Maebashi answered 27/11, 2012 at 16:32 Comment(8)
is there a way to do the reverse?Pentaprism
You mean go from ZPL to the WYSIWYG label design? No.Maebashi
@OviTisler i have a .txt file which contains ZPL code like: ^XA ^FO50,50^A0,60,60^FDTest^FS ^XZ But i am unable to print it's output on Zebra ZTC gc420t (EPL) printer. What should i do?Oocyte
You can use labelary.com/viewer.html to view and update the ZPL codeRound
@WalterCejas Thanks for your input! I had no idea this was a standardized languageElsaelsbeth
@BillTudor also we are using it to add images like business logos to the labelsRound
@Oocyte from the command prompt run: "copy label.zpl lpt:" or what port you useDudeen
Is there any way I can do this without having a zebra printer myself?Elf
G
68

Not sure if I'm missing something here but from the one that I'm using ZebraDesigner 2.2.3 (Build 4271), I can just click Print, tick "Print to file" checkbox, output to a *.prn file, open that file with Notepad and the code is there.

Goth answered 22/5, 2013 at 7:0 Comment(5)
Yes this produces the same file output at the accepted answer.Norikonorina
Only a detail on this answer. Is needed which the correct driver be installed at printer. If you use "Zebra Driver XPTO (EPL)" the printed code will be as EPL code. If you use "Zebra Driver XPTO" (without "(EPL)" on name) you will make a ZPL (Zebra Print Languege) code.Entomostracan
I get some kind of invalid text when I use Print to file : CT~~CD,~CC^~CT~ ==>>> THIS LINE HAS SOME KIND OF CHARACTERS ^XA~TA000~JSN^LT0^MNW^MTD^PON^PMN^LH0,0^JMA^PR4,4~SD15^JUS^LRN^CI0^XZ ^XA ^MMT ^PW1080 ^LL1049 ^LS0 ^FO26,30^GB1034,995,24^FS ^FT77,191^A0N,83,76^FB926,1,0,C^FH\^FDvar_item^FS ^FT83,450^A0N,200,139^FB916,1,0,C^FH\^FDvar_price^FS ^BY6,2,323^FT261,907^BUN,,Y,N ^FDvar_upc^FS ^PQ1,0,1,Y^XZMccubbin
@Biswas Khayargoli ~~ Yes, I am getting too. So that is the reason why print not working. Have you found any solution?Phototherapy
@Biswas Khayargoli ~~ that is not the error it is the part of your ZPL code - you can check your generated code [labelary.com/viewer.html]Phototherapy
M
43

You can add a new ZebraDesigner ZPL driver to the system and use a file as the port. Then when you "Print" the document, it will write the ZPL code to the file.

Note that it might have some header information before the first ^XA which you might not need.

UPDATE : (How to add local port on a driver)

  1. Go to Printer Properties
  2. Click on the Ports tab
  3. Click Add Port
  4. Select Local Port and click New port
  5. Enter a filename e.g. C:\output.zpl
  6. Make sure it is checked in the ports list
  7. Now all printing output should go to C:\output.zpl
Maebashi answered 27/11, 2012 at 16:32 Comment(8)
is there a way to do the reverse?Pentaprism
You mean go from ZPL to the WYSIWYG label design? No.Maebashi
@OviTisler i have a .txt file which contains ZPL code like: ^XA ^FO50,50^A0,60,60^FDTest^FS ^XZ But i am unable to print it's output on Zebra ZTC gc420t (EPL) printer. What should i do?Oocyte
You can use labelary.com/viewer.html to view and update the ZPL codeRound
@WalterCejas Thanks for your input! I had no idea this was a standardized languageElsaelsbeth
@BillTudor also we are using it to add images like business logos to the labelsRound
@Oocyte from the command prompt run: "copy label.zpl lpt:" or what port you useDudeen
Is there any way I can do this without having a zebra printer myself?Elf
I
27

I use the "Print to file" checkbox in the Print pop-up dialog. It produces a text file with the ZPL inside.

Iambic answered 20/5, 2014 at 10:19 Comment(3)
This is a better answer than the currently accepted answer (adding a file as a port)Cosecant
Only a detail on this answer. Is needed which the correct driver be installed at printer. If you use "Zebra Driver XPTO (EPL)" the printed code will be as EPL code. If you use "Zebra Driver XPTO" (without "(EPL)" on name) you will make a ZPL (Zebra Print Languege) code.Entomostracan
You're my hero @RafaelGomesFranciscoRound
M
8

If you want to see native ZPL codes, you must use zebra fonts. If you do not use you will see .GRF codes like below:

^FT320,64^XG007.GRF,1,1^FS

and do not understand them. After that hit print than select "Print to file". So you can see clear ZPL codes.

Margartmargate answered 29/7, 2015 at 12:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.