Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Sending printer data through the network / tcp from a button
Fri, Jun 2 2017 9:33 AMPermanent Link

kamran

Hi

I have a receipt printer which I need to send print data to.

It is an "Epson receipt TM 88 VI" printer so "ESC POS" codes could be used to perform a direct print from a button in the EWB app.

I guess I need to build the codes and text of what i want to print in a string and send it through to the printer?

Just trying to work out how this is possible with EWB ?  

Any pointers?

Regards

Kamran
Fri, Jun 2 2017 10:12 AMPermanent Link

Matthew Jones

kamran wrote:

> I have a receipt printer which I need to send print data to.
>
> It is an "Epson receipt TM 88 VI" printer so "ESC POS" codes could be used to perform a direct print from a button in the EWB app.
>
> I guess I need to build the codes and text of what i want to print in a string and send it through to the printer?
>
> Just trying to work out how this is possible with EWB ?  

If it is possible at all, EWB can do it. The key is to find out how to do it from JavaScript, and then you can just get EWB to copy that.

https://stackoverflow.com/questions/12407778/connecting-to-tcp-socket-from-browser-using-javascript might give some clues, but also a little old so things may have moved on.

--

Matthew Jones
Sat, Jun 3 2017 8:01 PMPermanent Link

kamran

thanks Matthew will look into it !

"Matthew Jones" wrote:

kamran wrote:

> I have a receipt printer which I need to send print data to.
>
> It is an "Epson receipt TM 88 VI" printer so "ESC POS" codes could be used to perform a direct print from a button in the EWB app.
>
> I guess I need to build the codes and text of what i want to print in a string and send it through to the printer?
>
> Just trying to work out how this is possible with EWB ?  

If it is possible at all, EWB can do it. The key is to find out how to do it from JavaScript, and then you can just get EWB to copy that.

https://stackoverflow.com/questions/12407778/connecting-to-tcp-socket-from-browser-using-javascript might give some clues, but also a little old so things may have moved on.

--

Matthew Jones
Image