Are you using POI-HMEF to read in the RTF?  Not that it matters, but I
don't believe HMEF and HSSF/XSSF or SS are directly linked.

You'll have to read and store all the formatting information, then create a
new XSSF document and apply the formatting you want.

>From your output I suspect you're just reading in byte code and writing
byte code out and expecting it to auto format for you and AFAIK there is no
such function within POI.

On Sat, May 23, 2015 at 4:43 AM, SnehaUttam.Dudhane <
[email protected]> wrote:

> Hi,
>
> I am using Apache POI to read paragraph at a time from internet. I am
> reading "*.rtf" file, and writing it into ".docx" file, It downloads the
> contents and stores it, in the docx file, but it also displays text
> formatting information in that docx file.
>
> For ex. after downloading, my file looks like -
> \p\f0\Arial\12\b\plain Diagnosis of report \tab\f0\Arial\10\plain :
> \p\f0\Arial\12\plain C01253320
>
> But, it should look like -
> Diagnosis of report : C01253320
>
> Is this the compatibility issue with Apache POI?
> It should not show me the formatting of text.
> Please help me resolve this issue.
>
>
>
>
>
> --
> View this message in context:
> http://apache-poi.1045710.n5.nabble.com/Downloading-Data-in-Microsoft-Word-format-using-Apache-POI-tp5718871.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