wood burning stoves 2.0*
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: 3594
    
  14

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: 3594
    
  14

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.
 
subject: How to print text to Dot Matrix Printer
 
Similar Threads
Print directly to dot matrix printer
Things our kids won't understand
printing text
How do I print a raw text file to any given printer port
Printing textual data from browser