For one of our web applications we currently have a process that generates for a Zebra Label printer the native zpl code in a file. The client then hits a print button which then opens that zpl text file in whatever default editor they have on their system, eg. windows/notepad.
What we’d prefer is to have the ability to send that zpl code file directly to the printer after the client has hit the print button. Any help in what is involved in doing this would be much appreciated.
I suppose your Zebra label printer is using a serial interface. The only way to send printing codes to it would be through a desktop app. The web app runs inside a browser that has no access to the serial port.
In principle you could do that through a desktop helper app that links to your web app through specialurl. When the users clicks print, the app sends the data to print to the helper which then sends that to the printer.
That would require delivering the helper to the user by download, and instruct him how to install it, and how to run the helper automatically, but it looks doable.
if the server is on the same network, or even a network that is reachable from the printer, i.e LAN/WAN
then you can just open a tcp port to a network printer on port 9100 and writeline the string
if its serial device then a simple serial to ethernet device works great. or get the official zebra ones.
if the clients are on the internet then it wont work, unless you do a bit of working around it. its definitely possible
to do it though. i know, i do.