Hi, 

I'm starting a new project and I need a library that reads and writes Word
files, so I started researching Apache POI. I have to upload the file on a
server, replace certain parts of it and then return it to the user with the
replaced text and preserved formatting. 

I tried to get the xml representation of the document with
document.getDocument().xmlText(), then replace what I need and finally
create a new file from this xml. But the formatting is not exactly the same
- the picture is gone, there is a problem with the numbering, the hyperlinks
are gone. 

Is there a simple way to just replace text in the same file? I don't need
another file.
-- 
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Change-parts-of-text-in-Word-files-tp3258984p3258984.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