File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 3649
    
  17

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: 3649
    
  17

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://aspose.com/file-tools
 
subject: How to print text to Dot Matrix Printer