1

We are trying to print labels by sending RAW ZPL text from the browser(typically chrome) to the printer.

We are looking for the best way to handle Printing from Desktops/laptops/Tablets/Phone browsers over a wireless connection(or wired , as long as it's only in one solution).

So, is there a way/technology that lets us print from a webpage(java webapp) from browsers over a wireless connection from Desktops/laptops/Tablets/Phone? What's the best way to handle this?

user1751510
  • 291
  • 2
  • 14

1 Answers1

1

From a Desktop

I've always installed the Zebra printer as a generic text based printer, and could print ZPL text from notepad, and it would get rendered by the Zebra printer. Worked over Ethernet TCP/IP connection just fine.

From a Server

Just send the XML via TCP/IP to the Zebra printer.

Oracle procedure would look something like this:

DECLARE

 l_return_msg           VARCHAR2(3000);
 l_printer_status       VARCHAR2(3000);
 l_return               VARCHAR2(3000);
 l_zpl                  CLOB;
 l_printer_ip           VARCHAR2(20);
 l_printer_port         VARCHAR2(10);
 BEGIN
 l_zpl :=’^XA^FO50,300^A0N,125,125^FDTEST^XZ’;  –String to send to printer
 l_printer_ip      :=’192.168.1.10′; –IP Address of printer
 l_printer_port    :=’9100′;
 l_return := INV_PRINT_REQUEST.SEND_XML_TCPIP(
        p_ip_address => l_printer_ip
    ,   p_port => to_char(l_printer_port)
    ,   p_xml_content => l_zpl
    ,   x_return_msg => l_return_msg
    ,   x_printer_status => l_printer_status
    );
END;

Answer from: Sending ZPL to a Label Printer Using PL/SQL

EdHayes3
  • 1,777
  • 2
  • 16
  • 31
  • Thanks for your response. This is how we are doing it currently via Windows RDP too. But we need it for other unix server, that our customers are going to access via browser across various devices(Desktop/laptops/phones/Tablets). – user1751510 Sep 22 '17 at 20:07
  • Just send a standard TCP/IP payload to the printer. Unfortunately I'm not too familiar with Unix and how to do it, but I'm sure there's some examples out there somewhere. – EdHayes3 Sep 22 '17 at 20:26