Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print APIs in Servlets?

Status
Not open for further replies.

porto2001

Programmer
Mar 7, 2001
24
PT
How to use print APIs in Servlets? I want to print a
web page through my servlet. This should be just like
Printable Page icon on the site.
Thanks in advance.
 
The print option on Sun's site just take the navigation off of the page (stuff people usually don't want on documents).

Define what you mean by "print a web page through my servlet". If you mean print on the server than yes you are going to need to use a Printer API. If you mean allow a client to print your webpage than this simple piece of javascript will work:
Code:
window.print()

If you have further questions let me know. Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top