At 16:16 22.02.2007, E.othman wrote:
>Hi,
>
>here is what i did with poi library to implement find and search in a MS 
>WORD DOC :
> the replace is working but the format of modified document is altered : 
>many newlines and pages are inserted in result document.
[...]
>as i said the result document seems to write each paragraph (in original 
>doc) into a whole page ...
>can some one help me fix the issue ?
>many thanks.

Hello,

HWPF is in my opinion only reliable for reading Word files. It does not
support writing word files which are relevant in real life.
The problem exists because many tables of properties in a Word file are not
correctly handled yet - a lot of work is done, but too much work is simply
not yet done. Having headers, footers, fields or 2-byte characters in a
Word file makes it impossible to use HWPF for writing Word files right now.
You certainly can create files, but they are not valid and Word will hang
or crash on them. Sorry for the bad news. 

Best wishes,
Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to