Switch to full style
What's behind JSP & Servlets
Post a reply

how to use printer using jsp

Wed Oct 22, 2008 1:53 am

can any one guide me how to take print out of any jsp page, i want to give a
button into my jsp, on button press printer will get connected and print the
page. any help or idea will be highlly appricated.



Re: how to use printer using jsp

Wed Oct 22, 2008 1:54 am

well if u want to take print when the button click write the script

function printPage()
{
window.print();
}

<input type="button" value="Print" name="print" onClick='printPage()'>

So the printer installed in ur system get load and the printout the required
page will be out.

Post a reply
  Related Posts  to : how to use printer using jsp
 Query about jsp and printer     -