On Mon, 9 Aug 2010, Tomas Flyer wrote:
Is there some way to convert the Word formatting in the paragraph to RTF formatting in the RichTextString required by setCellValue()? First converting Word text format to String and then to RTF destroys a lot of formatting information.
Alas not easily. Despite looking quite similar in office, the way the two file formats store rich text is completely different. They describe basically the same things, but you'd hardly know it from looking at the specs...
Unfortunately, HWPF is less mature than HSSF, so it's usermodel support for rich text stuff isn't as strong. What you'd probably want to do is improve things at the usermodel level, and then the mapping should get easier. If you do have any luck with this, do please send in patches!
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
