This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes printing of html link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "printing of html link" Watch "printing of html link" New topic

printing of html link

mohana konakanchi
Ranch Hand

Joined: May 16, 2001
Posts: 67

I need to implement printing of a document( WORD or EXCEL document) on click of an html link.
Each html link will be related to one document.
Type of the document is not same for all the links.
If anybody have solution or implemented already.
Please let me know
Thanks in advance
George Pavamani
Ranch Hand

Joined: Jan 31, 2002
Posts: 31
I am sure how to print Word documents and excel files on the click of the html links. But you can print the html pages by using the java-script function windows.print(). Hope this helps
George Pavamani
Ranch Hand

Joined: Jan 31, 2002
Posts: 31
Sorry, I meant i am not sure about printing documents using html links
I agree. Here's the link:
subject: printing of html link
Similar Threads
Mikalai Zaikin's notes
Issue in Viewing and Printing Word Document in IE
read generated html page and write into word doc?
File downloads...
window.Print() not working.