This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing word doucment using JSP

 
Aruna Velpuri
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Using a jsp how can print a word document.
Thanks
 
narasimharao konjeti
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Geeta Ramasami
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic