File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Generate dynamic word document from jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Generate dynamic word document from jsp" Watch "Generate dynamic word document from jsp" New topic
Author

Generate dynamic word document from jsp

Irene Loos
Ranch Hand

Joined: Apr 15, 2002
Posts: 78
I need to generate word document which will contain some dynamic information (address, name, etc). Ideally my jsp page will have link or button. When users will click on this link it will generate word document. Anybody done this before?


Irene Loos
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
There is an open-source project called "POI" for a Java API for generating/reading all the major MS file formats.
http://sourceforge.net/projects/poi
I don't think it can do everything that can appear in a Word document, but it may be able to do a simple one.
Bill
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

Irene, do a search through the forums and I believe you will find a number of other threads that have discussed this very topic.
One of the issues discussed was that it might be easier to generate RTF (Rich Text Format; a text-based markup format which Word understands) rather than an actual proprietary-format Word document.
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generate dynamic word document from jsp