aspose file tools*
The moose likes JSP and the fly likes Sending page to printer from jsp file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Sending page to printer from jsp file" Watch "Sending page to printer from jsp file" New topic
Author

Sending page to printer from jsp file

Nasir Mkhan
Greenhorn

Joined: May 13, 2001
Posts: 28
Hello All,
Can anyone plz tell me, how to send a page to printer(on server side) for printing from jsp file.And if it is html page then either source code or its disply will be print.
Thanks in any case.
Nasir khan
Jason Brawner
Ranch Hand

Joined: Dec 19, 2001
Posts: 66
I know of a way to print to a network printer, but only if the website is run within a local intranet. If this is the case, let me know and I will explain.
Otherwise you'll probably need to write some type of print renderer using the java.awt.print api. Not too sure.
Hope this helps,
JEB


Jason E. Brawner<br />Sun Certified Java Programmer<br />Sun Certified Web Component Developer
Nasir Mkhan
Greenhorn

Joined: May 13, 2001
Posts: 28
Yes Jason, This apication is running in intranet.In some cases on same machine.I will be thankful to you if you solve this problem.
Nasir khan
Jason Brawner
Ranch Hand

Joined: Dec 19, 2001
Posts: 66
Take a look at a product called ScriptX at http://www.meadroid.com/scriptx
For the most part it is free, unless you want more sophisticated functionality. You can use it to automatically send a print job to a network printer and taylor it to your liking, all under the covers.
I forgot to mention that it only works for IE!
Hope this helps,
JEB
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending page to printer from jsp file