Hi,

I am extracting text from a MS Word 2003 document and want to insert
it in a Excel 2003 cell preserving as much formatting as possible.

Currently I am in principle doing this:

...
Paragraph paragraph = section.getParagraph(i);
String extractedText = paragraph.text().trim() + "\n";
row.createCell(j).setCellValue(createHelper.createRichTextString(extractedText));
....

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.

Best Regards
Tomas

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

Reply via email to