Total members 10262 | Gratitudes |It is currently Thu May 24, 2012 10:18 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: how to use printer using jsp
PostPosted: Wed Oct 22, 2008 1:53 am 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:47 pm
Posts: 281
Has thanked: 0 time
Have thanks: 1 time

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.


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: how to use printer using jsp
PostPosted: Wed Oct 22, 2008 1:54 am 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:53 pm
Posts: 229
Has thanked: 0 time
Have thanks: 0 time
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.


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  

 Similar topics
 Query about jsp and printer

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: Google Adsense [Bot] and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team