zpl

What Zebra QLn220 settings do I need to set (and to what value[s]) to get a setting to “stick”?

允我心安 提交于 2019-12-02 07:16:12
问题 I am trying to programatically configure a Zebra QLn220 printer to set its "media.sense_mode" to either "bar" or "gap" (depending on what the user selects). The reliability of these commands working, though, seems very low (sometimes it works, sometimes it doesn't). To test the various possible commands, I used the Zebra Setup Utilities, with the PC plugged into the printer, of course. I sent this command from the util: ! U1 setvar "media.sense_mode" "gap" It worked; I know this, because

Convert image to GRF format

情到浓时终转凉″ 提交于 2019-12-02 02:08:09
I have a Zebra Gk420t printer that allows me to make stickers and I need to print an image on them. I read that the images must be in GRF format (pure hex). Someone knows how can I convert the images to GRF format in Linux? I read about Ztools software on Windows, but nothing interesting on Linux... Zebra provides a Java API that can convert graphics to GRF. You can use the command line interface to convert images to GRF like so : java -jar ZSDK_API.jar graphic myImage.jpeg -s myConvertedImage.GRF Someone knows how can I convert the images to GRP format in Linux? You're over-thinking this.

Why would a Zebra QLn220 Printer ignore the first couple of commands sent to it after sending it a command to update some settings?

人盡茶涼 提交于 2019-12-02 01:03:49
问题 I am sending commands to a Zebra QLn220 for it to print labels (naturally). I also have code, though, that assigns values to certain printer settings, such as: const string quote = "\""; string keepPrinterOn = string.Format("! U1 setvar {0}power.dtr_power_off{0} {0}off{0}", quote); string advanceToBlackBar = string.Format("! U1 setvar {0}media.sense_mode{0} {0}bar{0}", quote); string advanceToGap = string.Format("! U1 setvar {0}media.sense_mode{0} {0}gap{0}", quote); PrintUtils

Why would a Zebra QLn220 Printer ignore the first couple of commands sent to it after sending it a command to update some settings?

巧了我就是萌 提交于 2019-12-01 21:32:56
I am sending commands to a Zebra QLn220 for it to print labels (naturally). I also have code, though, that assigns values to certain printer settings, such as: const string quote = "\""; string keepPrinterOn = string.Format("! U1 setvar {0}power.dtr_power_off{0} {0}off{0}", quote); string advanceToBlackBar = string.Format("! U1 setvar {0}media.sense_mode{0} {0}bar{0}", quote); string advanceToGap = string.Format("! U1 setvar {0}media.sense_mode{0} {0}gap{0}", quote); PrintUtils.SendCommandToPrinter(keepPrinterOn); if (radbtnBar.Checked) { PrintUtils.SendCommandToPrinter(advanceToBlackBar); }

How to use the ^DG command send image to a zebra printer in java?

a 夏天 提交于 2019-12-01 10:55:44
Is anyone know how to convert a image(such as *.bmp files) to HEX string in java,so the HEX string can used in the ^DG command(one of command in zpl).thanks! It's not easy. You have to convert the image to 1-bit per pixel b/w, and then calculate the size including the bytes per row, and then properly form up the parameters of the ~DG command to store it. Or... Zebra provides an API to convert images to GRFs (Zebra internal image type). There are a bunch of developer demos in the package, including a demo on how to print/store an image as a GRF on your printer Zebra Link-OS SDK download Hope

How to use the ^DG command send image to a zebra printer in java?

江枫思渺然 提交于 2019-12-01 08:48:36
问题 Is anyone know how to convert a image(such as *.bmp files) to HEX string in java,so the HEX string can used in the ^DG command(one of command in zpl).thanks! 回答1: It's not easy. You have to convert the image to 1-bit per pixel b/w, and then calculate the size including the bytes per row, and then properly form up the parameters of the ~DG command to store it. Or... Zebra provides an API to convert images to GRFs (Zebra internal image type). There are a bunch of developer demos in the package,

Print characters with an acute in ZPL

亡梦爱人 提交于 2019-12-01 04:46:11
If I send the ZPL commands below to a Zebra printer, it prints AmitiÙ : ^XA ^FO50,20 ^CI7 ^A0N,25,15 ^FD Amitié ^FS ^XZ Note that the file encoding is ANSI . Note the use of the ZPL command ^CI7 (7 => Single Byte Encoding - France 1 Character Set). On the other hand, if I send the ZPL commands below to a Zebra printer, it prints Amitié (which is what I actually need to get): ^XA ^FO50,20 ^CI28 ^A0N,25,15 ^FD Amitié ^FS ^XZ Note that the file encoding is UTF-8 . Note the use of the ZPL command ^CI28 (28 => Unicode (UTF-8 encoding) - Unicode Character Set). Do you know what's wrong in the first

Print characters with an acute in ZPL

人盡茶涼 提交于 2019-12-01 01:41:32
问题 If I send the ZPL commands below to a Zebra printer, it prints AmitiÙ : ^XA ^FO50,20 ^CI7 ^A0N,25,15 ^FD Amitié ^FS ^XZ Note that the file encoding is ANSI . Note the use of the ZPL command ^CI7 (7 => Single Byte Encoding - France 1 Character Set). On the other hand, if I send the ZPL commands below to a Zebra printer, it prints Amitié (which is what I actually need to get): ^XA ^FO50,20 ^CI28 ^A0N,25,15 ^FD Amitié ^FS ^XZ Note that the file encoding is UTF-8 . Note the use of the ZPL command

How to print a tilde (~) in Zebra Programming Language (ZPL)

怎甘沉沦 提交于 2019-11-30 20:50:23
I am maintaining a program that outputs ZPL to a label printer. Today, the character sequence ~Ja came in as part of a string to be printed, which is ZPL's "cancel all" command. Needless to say, the label did not print. Is there an easy way in ZPL to escape a tilde? Esoteric Screen Name You can use ~CT or ^CT to change the tilde control character to any other ASCII character, and then you can print tildes normally. However, the new control character won't be printable. This is probably going to be quite a hassle to maintain. An example changing the control command prefix to + , taken from page

How to get ZPL code from a ZebraDesigner label?

余生颓废 提交于 2019-11-30 10:36:17
问题 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 . 回答1: 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) Go to