This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to print text to Dot Matrix Printer  RSS feed

 
A.G Rajkotia
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me how do we print text to dot matrix printer.
 
Stephan van Hulst
Saloon Keeper
Posts: 7003
110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you likely have to write some sort of native code to communicate with the operating system, which has drivers for the printer.

However, this is probably not easy, and I would think that there are already third party libraries out there that have solved this problem. So google around for solutions that other people have made.
 
Stephan van Hulst
Saloon Keeper
Posts: 7003
110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, if you googled around a little bit, you might find that you could access the printer like a file, and simply write text to it directly.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!