Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connecting my Java application to the pos printer

 
Julius Adek
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Julius Adek
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ 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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No idea. See what the printer documentation says, and give it a try.
 
Julius Adek
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ Ulf Dittmer, thanks for your contribution. God bless you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic