Meaningless Drivel is fun!*
The moose likes JSP and the fly likes Printing word doucment using JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Printing word doucment using JSP" Watch "Printing word doucment using JSP" New topic
Author

Printing word doucment using JSP

Aruna Velpuri
Greenhorn

Joined: May 07, 2003
Posts: 8
Hi
Using a jsp how can print a word document.
Thanks
narasimharao konjeti
Ranch Hand

Joined: Apr 26, 2003
Posts: 130
let me know, do u want to print the document from the word file or html file. if u want to print html file u can use javascript ocument.print() option. and let me know ur exact requirement
cheers


"Unwise to sweat petty stuff, wise to pet sweaty stuff."
Geeta Ramasami
Ranch Hand

Joined: Mar 05, 2003
Posts: 72
Hi..
If you want the response of the JSP to be produced in a Word document, then set the page content type="application/word".Hope u r looking for this.
Cheers
Geeta
Aruna Velpuri
Greenhorn

Joined: May 07, 2003
Posts: 8
Thanks nr konjeti and Geeta.
But my requirement is using jsp i will give list of files with link to print for each file.
Those files may be html, word, or xml etc.,
When user clicks on link how can i print that file using JSP.
Thanks in advance......
Regards
Aruna
Srini Gogineni
Greenhorn

Joined: May 19, 2003
Posts: 7
Originally posted by Aruna Velpuri:
Thanks nr konjeti and Geeta.
But my requirement is using jsp i will give list of files with link to print for each file.
Those files may be html, word, or xml etc.,
When user clicks on link how can i print that file using JSP.
Thanks in advance......
Regards
Aruna

Hi,
use the java script function (window.print()),this need to be invoked on clikc of the particular link.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing word doucment using JSP