Win a copy of Kotlin in Action this week in the Kotlin 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: 7797
142
  • 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: 7797
142
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!