This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Client side Printing Problem  in JEE 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 "Client side Printing Problem  in JEE" Watch "Client side Printing Problem  in JEE" New topic

Client side Printing Problem in JEE

Eranga Kodikara

Joined: Jan 18, 2010
Posts: 2
hi all

how can i print text file using client side environment through web browser
n also i wanna print directly without appearing print dialog box ?


Joe Ess

Joined: Oct 29, 2001
Posts: 8839

Welcome to the JavaRanch.
The short answer to your question is: you can't. Letting an application in a browser have access to valuable system resources is a breach of security.
There are some alternatives. I worked an enterprise system where we had a "print" button on an applet that actually printed from the server. This was not a security problem since the application was not used by the world at large. Another alternative would be to create a signed applet. The application signature identifies the creator of the application and insures it has not been tampered with, so signed applets are given much more flexibility.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Consider Paul's rocket mass heater.
subject: Client side Printing Problem in JEE
Similar Threads
Printing a server file to client side printer
Print online Form using Servlets
How to print
How can I print?
Printing Zip Files