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 Java 8 in Action this week in the Java 8 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: 5
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: 39578
    
  27
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 - updated with new look and Ping home screen widget
Julius Adek
Greenhorn

Joined: Dec 02, 2012
Posts: 5
@ 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: 39578
    
  27
No idea. See what the printer documentation says, and give it a try.
Julius Adek
Greenhorn

Joined: Dec 02, 2012
Posts: 5
@ 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
 
Similar Threads
Problem in Threading
Need help with POS printer
Printing with POS Printer
Printing in Unix
JavaPOS EPSON printer