dcsimg
How can I integrate print facility to my servlet?!_NEWLINE_!i.e.,...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Noufal_A
Posted On:   Wednesday, March 7, 2001 01:07 AM

How can I integrate print facility to my servlet?
i.e., I have designed a Table and two buttons "Submit" and "Print".
When I click Print button the contents of the table should be printed? How can I go about this?

Kindly help me.

Re: How can I integrate print facility to my servlet?!_NEWLINE_!i.e.,...

Posted By:   Allen_S  
Posted On:   Tuesday, May 1, 2001 12:35 PM

I think the printing is done on the client side. Browser data to printer. A servlet is a program that runs on the server. It doesn't have a "face". The printing can be done using Javascript. Browsers 5 and above support the print() javascript command (I think).
The code:


Note: This will print the whole page, not just the table.
About | Sitemap | Contact