Questions tagged [zpl]

ZPL stands for the "Zebra Programming Language" and is a proprietary programming language used to communicate to Zebra branded printers.

Wiki:

ZPL stands for the "Zebra Programming Language" and is a proprietary programming language used to communicate to Zebra branded printers. Zebra Programming Language (ZPL and ZPL II) is a Printer Control Language.

Read more:

631 questions
4
votes
2 answers

Increase the resolution (dpi) of an image

I'm not sure how feasible this will be without some thirdparty libraries, but here goes: I have an image, 450x900 in size, which im trying to print. The problem is, the method I'm using to print is sending raw data to the printer. The resolution of…
jb.
  • 1,848
  • 9
  • 27
  • 43
3
votes
1 answer

How to retrieve png from labelary api response ( javascript )

I am trying to convert a ZPL string to a png image through the labelary.com API. I am able to send a fetch request and receive a response. However when I look at the network tab in chrome dev tools, I can see the png image in the "preview" tab, but…
Komakino_1251
  • 220
  • 2
  • 13
3
votes
3 answers

Developing an utility for rendering ZPL code of Zebra printer (105 SL)

Possible Duplicate: Print preview ZPL II commands using .NET WinForm before sending it to Zebra printer I start developing an utility on .NET 4.0 for Zebra Printer 105SL. Maybe someone know these devices. I have some questions: I've just started…
zelq
  • 91
  • 1
  • 1
  • 3
3
votes
1 answer

Restarting a Zebra printer using ZPL

Is there a ZPL command to simply restart a Zebra printer? So far I could only find the ~JR command, which to me doesn't look like what I'm searching for. I just need a way to issue a restart to the printer without resetting any of its configuration.
3
votes
1 answer

TypeError: a bytes-like object is required, not 'Drawing'

I am trying to convert an Alpha-Numeric Value to PNG and then in ZPL format. Both of them have different libraries and when used independently they work fine. Look at the code: from base64 import b64encode from reportlab.lib import units from…
Rahul Sharma
  • 2,187
  • 6
  • 31
  • 76
3
votes
0 answers

Zebra printer printing UTF-8 character as two ASCII characters

Printing to a Zebra ZQ510 using "line_print" mode on continuous feed receipt paper. ! U1 setvar "ezpl.media_type" "continuous" \r\n ! U1 setvar "device.languages" "line_print" \r\n ! U1 ENCODING UTF-8 \r\n ! U1 SETLP 5 0 28 \r\n ! U1…
Chuck Krutsinger
  • 2,830
  • 4
  • 28
  • 50
3
votes
3 answers

Why does rotating a Code 128 bar code with ZPL make the barcode thicker?

Consider the below ZPL code. ^XA ^BY2,2,80 ^FO50,50^BCR^FD3079+Plate-SS-14 # 44^FS ^XZ Using the online viewer at http://labelary.com/viewer.html shows you vertically rotated bar code with label beneath and everything appears to be fine. However,…
Adi
  • 73
  • 7
3
votes
3 answers

Printing to Zebra printer that is default Windows printer

I have defined a Zebra printer as a default printer on my Windows 7 machine. I have my ZPL code that I want to print: "^XA^LH30,30^FO20,10^AFN,56,30^FDqwewer^FS^FO20,80,^B3N,Y,20,N,N^FD213004^FS^XZ" Can you refer me to some example how I can send…
Night Walker
  • 20,638
  • 52
  • 151
  • 228
3
votes
1 answer

ZPL center variable text

I just modified a label for an Zebra printer. I almost finished it, but I am currently stuck on 1 row, i have read different topics on multiple sites but nothing help me to get what I want. Our label is 10cm height and 15cm width, the row below…
Martijnsp
  • 31
  • 3
3
votes
1 answer

ZPL fieldblock ^FB for unicode fonts

I am using ZQ520, its already supports Unicode and I am loading the font as follows: ^XA ^CWZ,E:TT0003M_.FNT^FS^XZ I can use the font to print Arabic as follows: ^FO100,50^CI28^AZN,0,25^FD ARABIC TEXT HERE ^FS It works fine but when I use ^FB…
3
votes
1 answer

How to optimize ASCII HEX for BMP to ZPL as using in Labelary

I want to write a code that will convert bitmap image to zpl. I found following code for this: string bitmapFilePath = @"D:\Demo.bmp"; int w, h; Bitmap b = new Bitmap(bitmapFilePath); w = b.Width; h = b.Height; byte[] bitmapFileData =…
Hassam Salam
  • 246
  • 3
  • 13
3
votes
1 answer

Download custom font with ZPL

I'm trying to download custom font .TTF to the Zebra printer by using ZPL commands. There is a ZPL command ~DY which can download fonts to the printer. This command has the following parameters ~DYd:f,b,x,t,w,data d- file location Accepted Values:…
Christian
  • 535
  • 1
  • 6
  • 13
3
votes
1 answer

Program printing to zebra printer ZPL? or alternatives?

Is printing as RAW using ZPL the best way to print contents via zebra printers? What are the best alternatives to using ZPL string? Can I use the ZebraDesigner Driver? If so, what is the way to do it? Thanks!
3
votes
2 answers

Can Zebra Designer import files containing ZPL code

I'm using Zebra Designer 2.2.2 (Build 2728) Question How can i import ZPL Code in the Designer?
AS400
  • 373
  • 1
  • 4
  • 8
3
votes
3 answers

Convert BMP image to GRF format C# / VB.NET (To use in ZPL printer)

I am using following code to convert BMP Image to GRF format. Public Shared Function CreateGrf(filename As String, imagename As String) As String Dim bmp As Bitmap = Nothing Dim imgData As BitmapData = Nothing Dim pixels As Byte() …
user2256857
  • 179
  • 1
  • 2
  • 9