jQuery in Action, 3rd edition
The moose likes I/O and Streams and the fly likes Print directly to dot matrix printer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Print directly to dot matrix printer" Watch "Print directly to dot matrix printer" New topic
Author

Print directly to dot matrix printer

yesaya handoyo
Greenhorn

Joined: Aug 31, 2008
Posts: 25
Hi all,i want to ask for help.Can anyone teach me how to print directly to a dot matrix printer?Without using any printer driver??Please help me..Thanks a lot..
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9138
    
    9

If your OS and printer supports it, you can access a printer like you would a file, like in this example from the old Java Programmer's FAQ:



One thing I feel the need to point out, PrintStream and PrintWriter don't actually have anything to do with printing-to-paper. Their purpose is to make it easy to write formatted representations of objects to a stream, along with some other convenience features.
[ October 09, 2008: Message edited by: Joe Ess ]

[How To Ask Questions On JavaRanch]
yesaya handoyo
Greenhorn

Joined: Aug 31, 2008
Posts: 25
Ok,thanks a lot..
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Print directly to dot matrix printer
 
It's not a secret anymore!