As you have found out, the Rich Text Format uses markup in a similar way to
html. You will have to either find a way to interpret the markup yourself
and convert that into instructions that you can encode using POI (this is a
good place to start http://www.biblioscape.com/rtf15_spec.htm) or you should
look to using something like JODConverter
(http://www.artofsolving.com/opensource/jodconverter.html) to leverage the
functionality within Open/LibreOffice and perform the file conversions this
way. 

My only concern is that I an not sure whether Open/LiberOffice fully support
writing the Word xml file format. At the back of my mind, I feel that they
will simply save the file as rtf with the .docx extension. If you do that,
Word will silently open the document for you. This would not of course be a
true file conversion and it is something that I think merits further
investigation. Sorry to say that I cannot help as I use LiberOffice
exclusively and do not have access to Word on my machine.

If you are working on a Windows platform /exclusively/, then you could look
at OLE/COM and using something like JACOB to create and control an instance
of Word itself and perform the file conversions that way. This does work
quite well but is slow and a little cumbersome.



--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Downloading-Data-in-Microsoft-Word-format-using-Apache-POI-tp5718871p5718882.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to