File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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: 8839
    
    7

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..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Print directly to dot matrix printer
 
Similar Threads
Printing Problem in AWT/SWING
How do I print a raw text file to any given printer port
Getting the browser output into java app.
Network printing issue >(^.^)>
How to print text to Dot Matrix Printer