Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes How to print text to Dot Matrix Printer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "How to print text to Dot Matrix Printer" Watch "How to print text to Dot Matrix Printer" New topic
Author

How to print text to Dot Matrix Printer

A.G Rajkotia
Greenhorn

Joined: Aug 11, 2011
Posts: 28
Can anyone tell me how do we print text to dot matrix printer.
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3647
    
  16

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
Bartender

Joined: Sep 20, 2010
Posts: 3647
    
  16

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.
 
GeeCON Prague 2014
 
subject: How to print text to Dot Matrix Printer