B4J Question How to send printing to Custom K3N?

amorosik

Expert
Licensed User
I need to create a procedure for sending receipts to a Custom K3N printer
Have you ever created a procedure in B4J to activate communication between a PC and a fiscal printer?
 

stevel05

Expert
Licensed User
Longtime User
So it seems that there are two possibilities.

1) You need to install a proprietary driver to print to it, which seems unlikely looking at the advertising or
2) You need to install it on your PC as a network printer. If I remember correctly you can get the printer installation routine to search for network printers.
 
Upvote 0

Lello1964

Well-Known Member
Licensed User
Longtime User
The printer you mentioned is a fiscal printer; commands must be sent via TCP-IP socket using its specific protocol.

Send me email, i'll send you protocol manual.
 
Upvote 0

Gianni M

Well-Known Member
Licensed User
Longtime User
with b4j?
 

Attachments

  • java.zip
    1.5 KB · Views: 50
Upvote 0

emexes

Expert
Licensed User
Longtime User
If handles ESC/POS then there is a library dedicated to that, but it might need updating to handle the wired internet connection.

Actually, there seem to be several, but this one rings a bell the loudest:


It is a donation-ware library, but from what I've seen, @Star-Dust provides brilliant support, and if his library helps eke the best out of your apparently top-of-the-line printer, then I'm sure it'd be a worthwhile investment.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
For network printer, I use Socket class to connect to the printer and use AsyncStreams to print.
 
Upvote 0
Top