This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply 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: 18
Can anyone tell me how do we print text to dot matrix printer.
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3065
    
    1

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: 3065
    
    1

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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to print text to Dot Matrix Printer
 
Similar Threads
printing text
Printing textual data from browser
How do I print a raw text file to any given printer port
Print directly to dot matrix printer
Things our kids won't understand