Print BMP with ZPL

2019-03-31 19:20发布

How can I use ZPL II to print a bitmap (BMP) image?

I used ~DY to download the BMP to the printer:

~DYR:PRINT,B,B, <size> , <width> , <data>

I am using PHP to send raw data to the printer, so <> variables are coming from that script. Using the printer's diagnostic utility I verified that the file was successfully downloaded using that command. I was also able to print that BMP file using TSPL, a different printer language that this particular printer also supports in addtion to ZPL, so I know that the BMP was written correctly.

I tried using the following code to then print the BMP:

^XA
^FO0,0^XGR:PRINT.BMP,1,1^FS
^XZ

But it only spits out a blank label.

What am I doing wrong?

4条回答
▲ chillily
2楼-- · 2019-03-31 19:26

After my information you canNOT use .BMP extension, thus it is set to a fixed value, which is .GRF

Check this as well -> http://www.servopack.de/support/zebra/ZPLII-Prog.pdf

查看更多
别忘想泡老子
3楼-- · 2019-03-31 19:34

You can use ZebraNet Bridge to convert your BMP (or PNG, or JPG, etc) to GRF format

http://www.zebra.com/id/zebra/na/en/index/drivers_downloads/utilities/other_utilities/zebranet_bridge_enterprise.html

查看更多
Juvenile、少年°
4楼-- · 2019-03-31 19:36

Try this instead:

^FO0,0^IMG:PRINT.BMP^FS

Good luck.

查看更多
爷、活的狠高调
5楼-- · 2019-03-31 19:43

Here is the link to download the Zebra Setup Utilities:

https://www.zebra.com/us/en/support-downloads/eula.-227178c9720c025483893483886ea54dde80fe8dccd74087deac0002665121f1b906a97e0267e4c60078aef6cd4a559.html

Once I launched the app I pressed the "Install New Printer" button and installed a random printer.

After installing the printer, select the printer and press the "Download Fonts and Graphics" button. This will install the "ZebraDesigner Fonts and Graphics Downloader".

You can use this utility to convert bitmaps to zebra bitmaps.

I am following these directions now. I'll let you know if it works.

https://km.zebra.com/kb/index?page=content&id=SO7892

The software works, but I still can't convert a .bmp to an actual ZPL bitmap.

查看更多
登录 后发表回答