How do I create a formatted Microsoft Word document from Java?

Stephen Silber

[More Q: (I know how to set the content-type from a servlet, but I require formatted bordered table oriented output in the word doc.) ]

The simplest way, since the Word format is messily binary, is to write out an RTF file, which is mostly ASCII-oriented. This technique works just well--check out the RTF output from an SEC filing at to see some nice examples of programmatically-generated RTF.

The RTF spec is at

[See also]

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact