Printing on ESC/POS printers

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Printing on ESC/POS printers

Postby achiary » Thu Dec 26, 2019 7:12 pm

Hi everyone !

We need to print to a thermal printer that supports ESC/POS protocol.

Has anyone faced this case ? Is it necesary to use a Plug-in ?

Help and suggestions are appreciated.

Best regards
achiary
 
Posts: 83
Joined: Wed Nov 14, 2007 3:29 pm
Location: Argentina

Re: Printing on ESC/POS printers

Postby achiary » Sun Dec 29, 2019 3:56 pm

May be I have to share more information : printing to an ESC/POS device means sending binary data to a device.

I do not find a command in Servoy to do it; the print command associated to a form is meant to print a foundset or the current record so it is not applicable.

May be someone has faced a similar case.
achiary
 
Posts: 83
Joined: Wed Nov 14, 2007 3:29 pm
Location: Argentina

Re: Printing on ESC/POS printers

Postby Joas » Tue Mar 17, 2020 4:57 pm

It depends on the printer and on the client that you use.

I've worked with POS printers that were connected through the serial port or via tcp/ip, In smart client you need a plugin for that. I've also worked with POS printers that had windows drivers, so it was just possible to print to it like a normal printer, no plugin necessary.

In the NGclient it is a bit more tricky to connect to local devices. A good option would be to run the NGclient from electron. Let me know if you need more info on that.
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 9 guests