This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Generate Word file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Generate Word file" Watch "Generate Word file" New topic
Author

Generate Word file

Kirtikumar Puthran
Ranch Hand

Joined: Mar 04, 2003
Posts: 37
Hello,
How do I generate a WORD file with text and tables, using servlets ???
Thanks in advance,
Kirtikumar Puthran


Regards,<br />Kirti
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi
check out the poi project.
well, i heard its not working very well and poorly written code but you can give it a try.
k
Kirtikumar Puthran
Ranch Hand

Joined: Mar 04, 2003
Posts: 37
Hi k,
Thanks a lot...I will check this out and see if it helps.
Kirti
chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
Originally posted by karl koch:
hi
check out the poi project.
well, i heard its not working very well and poorly written code but you can give it a try.
k

vague things that dont mean anything - have you got any links to your claim its badly written? i can understand it not working very well - the site claims its very early in development. You are probably better off writing in RTF which word will open no problem if youcan.
[ March 05, 2003: Message edited by: chanoch wiggers ]

chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
Kirtikumar Puthran
Ranch Hand

Joined: Mar 04, 2003
Posts: 37
Hi,
Are there any other resources or links available which could help me???
Kirtikumar Puthran
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi chanoch
well sorry for not posting links to things ive heard....
but if you have time to spend check the javaranch forum. i dont recall what forum it was neither do i remember who it was (which makes searching a little hard....) but in the post it was mentioned that there is bad (none at all) exception handling, no documentation of the code and that it doesnt work properly. i have to agree that this is a little vague...
btw: ill use POI in one of my projects in the next months. maybe i know better afterwoods.
k
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

Kirtikumar, if all you are trying to do is to emit a document that Word can read, you might want to explore emitting RTF (Rich Text Format) rather than a bona fide Word document.
Word (and many other applications on multiple platforms) will be able to read and display the RTF file, and it's a lot easier to generate than the proprietary (and constantly changing) Word format.
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ken Shamrock
Ranch Hand

Joined: Jan 23, 2002
Posts: 139
karl koch
If you've tried POI, pls post a report here, I do not need to use it yet but may be in the future, I briefly took a look to the site and it seems that it doesn't have any tutorial on how to use the program POI?
To Bear,
Any API for outputting to RTF?
Thanks


Thanks everyone who helped me
Kirtikumar Puthran
Ranch Hand

Joined: Mar 04, 2003
Posts: 37
Hi Bear,
I have already accomplished the task to generate a rtf file. It opens up in doc, no doubt about that. But this will work only for simple text.
What if i want to include an image in the rtf file ? I simply tried reading the image file and outputting it in the rtf file. It didn't work for me.
Rgds,
Kirtikumar Puthran
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Generate Word file
 
Similar Threads
Converting Html to PDF
Writing To MS_Word using POI--URGENT
Servlet --> WORD
ms-word generation
Generate MS_Word using POI--URGENT