aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes connecting my Java application to the pos printer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "connecting my Java application to the pos printer" Watch "connecting my Java application to the pos printer" New topic
Author

connecting my Java application to the pos printer

Julius Adek
Greenhorn

Joined: Dec 02, 2012
Posts: 7
Please, am developing an application that will be used for printing receipt but i don't know if there is a library for connecting my Java application to the pos printer. The printer is "sam4s ellix 2011s POS printer." Please your help will be highly appreciated.
Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
Here's a starting point for printing from Java code: http://docs.oracle.com/javase/7/docs/technotes/guides/jps/spec/JPSTOC.fm.html. Chapter 1 has basic code that selects a printer and prints to it; if the driver for your printer is installed, I would expect it to be one of the available options in the PrintService[] services array.


Ping & DNS - my free Android networking tools app
Julius Adek
Greenhorn

Joined: Dec 02, 2012
Posts: 7
@ Ulf Dittmer. Thanks very much, what am thinking is the paper size of pos printer if the basic printing library will work?
Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
No idea. See what the printer documentation says, and give it a try.
Julius Adek
Greenhorn

Joined: Dec 02, 2012
Posts: 7
@ Ulf Dittmer, thanks for your contribution. God bless you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connecting my Java application to the pos printer