What have you tried? Where did you fail? ShowSomeEffort.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Word and Excel, although both part of MS Office, are very different in structure. The reason you're able to put Excel tables in Word is because of OLE objects. The Word document contains a little part that is actually asking Excel to do the hard work.
praveen shinde wrote:Is it possible to create a table in word document which contains the values extracted from the database using java?
Yes. You've already been pointed to the Apache POI library that can create DOC and DOCX files. But if I wanted to create complex text documents, I'd probably create an RTF template by hand, add some easily recognizable placeholders (like "<<table>>"), and then use text search/replace to fill in the actual content using RTF markup. Most text processors (and Word in particular) can read RTF just fine.
praveen shinde
Ranch Hand
Joined: Jun 03, 2009
Posts: 63
posted
0
Hello,
After hours of googleing on net I found a javadocx which could just draw a table without adding any contents to the table. But i have to add content from database which is not supported in free version. so if anyone knows any silmilar tool please let me know.
I could not find any code on Apache POI.
Any help would highly be appreciated
Thanks
Praveen