You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Cyril Hanquez <ch...@yahoo.com> on 2009/02/10 15:36:16 UTC

HWPF and changing text

Hi,


I would like to change the content of a Word document : I tried with insertBefore, insertAfter and replaceText but those 3 methods are breaking the MS Word format - you cannot open the word file anymore with Word only with Wordpad.

My idea is to change some piece of text keeping the layout, pictures and other embedded elements and saving the final text under another name. I've done a small test by just saving an existing word file without any modification : I can open the file in Word but the size is lower than the original (ie. 34KB to 29KB)!

I know that this problem has been already reported by some other users... any hint ?

Thanks,
Cyril


      __________________________________________________________________________________________________
Ne pleurez pas si votre Webmail ferme ! Récupérez votre historique sur Yahoo! Mail ! http://fr.docs.yahoo.com/mail/transfert_mails.html