Sending ZPL to printer with IP address on network


sherman levine
 

A followup to my prior question.

I ended up with two simple solutions

1. Enable LPR in Windows features, then

lpr -S 192.168.1.24 -P RAW -d c:\users\sdlevine\desktop\label_format.zpl

(where 192.168.1.24 is the address of the printer)

2. Use Magic HTTPPOST

blob = File2Blb (zpl filename)

HTTPPOST (192.168.1.24,blob,'Content-type:ANSI')

Thanks to Todd's and Steve's for their kind responses


Steven Blank
 

Sherm,

I didn't know that a Zebra printer will accept HTTP requests — good to know!

Thanks for the followup.

Steven G. Blank
Ξ SGBlank Consulting

On 1/29/2023 7:29 AM, sherman levine wrote:
A followup to my prior question.

I ended up with two simple solutions

1. Enable LPR in Windows features, then

lpr -S 192.168.1.24 -P RAW -d c:\users\sdlevine\desktop\label_format.zpl

(where 192.168.1.24 is the address of the printer)

2. Use Magic HTTPPOST

blob = File2Blb (zpl filename)

HTTPPOST (192.168.1.24,blob,'Content-type:ANSI')

Thanks to Todd's and Steve's for their kind responses