my dog learned polymorphism*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 8935
    
    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 ]

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
yesaya handoyo
Greenhorn

Joined: Aug 31, 2008
Posts: 25
Ok,thanks a lot..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Print directly to dot matrix printer