File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes print a file to a printer help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "print a file to a printer help" Watch "print a file to a printer help" New topic

print a file to a printer help

Fouad Kada

Joined: Jul 22, 2006
Posts: 4
help, im desperate in here, personnaly i dont think java can print to printers...
i have been searching, alot, all i want is to print a txt file...
it works fine with jpeg and gif but not with txt...
it seems that my printer doesnt support which makes sense because thats why you install drivers when i install you new printer...
can it be done in java...

here is my code

please help me, i need a way to print this file from a ajava application...
thanks in advance
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24195

This is the third time in three days that you've posted variations of this same question. Each time, you've posted it in a different forum, and neither of the last two times have you even mentioned any of the previous (excellent) responses that you've received. Please keep the discussion in one thread, and explain what you did in response to previous suggestions -- otherwise noone is going to be able to help you!

I'm going to close this. Please go back to this thread and directly respond to Allan's suggestion, and let's try to have an actual conversation.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: print a file to a printer help
jQuery in Action, 3rd edition