Hi everyone
I'd like to make a print button to print my
page.How can i do this with JSP?
Can anyone give me example or or some link?
Thanks
-
How to print page with JSP (2 messages)
- Posted by: Nenad Bosanac
- Posted on: March 20 2006 02:56 EST
Threaded Messages (2)
- How to print page with JSP by lokesh pant on March 20 2006 07:33 EST
- How to print page with JSP by Chris Schalk on March 27 2006 17:09 EST
-
How to print page with JSP[ Go to top ]
- Posted by: lokesh pant
- Posted on: March 20 2006 07:33 EST
- in response to Nenad Bosanac
U can use java.awt.print package
U can use these Classes for Printing.
Paper,PageFormat,PrinterJob,Pageable,Printable etc.
Njoy
http://lokeshpant.blogspot.com -
How to print page with JSP[ Go to top ]
- Posted by: Chris Schalk
- Posted on: March 27 2006 17:09 EST
- in response to Nenad Bosanac
I think you mean to print from the browser directly - so as not to force the user to click on the print button.
In that case you could use:
<form>
<input type="button" value="Print this page" onClick="window.print()">
</form>
see..
http://www.javascriptkit.com/howto/newtech2.shtml
(Note: This really has nothing to do with JSP)