• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending page to printer from jsp file

 
Nasir Mkhan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nasir Mkhan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic