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 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 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 "Client side Printing Problem  in JEE" Watch "Client side Printing Problem  in JEE" New topic
Author

Client side Printing Problem in JEE

Eranga Kodikara
Greenhorn

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 ?

Thanks
----Eranga---


Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8935
    
    9

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Client side Printing Problem in JEE