printing - What's the best way to directly print to a printer, like POS printer, over the web? -


Is it possible to print from a web app to a network printer? Are there any POS or similar form factor printers that can be connected to the internet and printed directly (given that a port has been opened through a router)?

My ideal case would be a printer, on which I send XML and print it without the need for PC and therefore no driver.

One more thing that is good is to create an SSL connection on the printer, but this is not important.

Most thermal POS or labels can be connected to a printer manufacturer with an add-on network card from the printer is. The big brand names are Zebra and Intermax.

The interesting thing is that most of these printers have direct ASCII mode, so you just connect to a plain old TCP / IP connection and spit some formatting commands. ., Is written in a proprietary printer language which the manufacturer will give you. In the case of an intermediate, it is called the IPL (Intermediate Printer Language).

You have two options ... You can click on a button on the user, refresh one page, and on the server side, simply open printers and print a TCP / IP connection. It will also work for serial port printers and regular Windows printers. In fact, we have recently implemented it in a project. Your second option is to open a connection to the printer to write some client-side code, javascript or what-is, and the same printer spit the message. Warning: You might do this in security concerns because the browser can not take your page to the beginning of an outbound connection with a random IP address. If you are behind a corporate firewall and you can rely on doing some tweaking in the customer protection model, then it may be possible.

Personally, I prefer printing from server side instead of client side.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -