Hello, I am trying to edit the properties of various word, powerpoint, and excel
files and I am having some trouble.  The example on the website
(http://jakarta.apache.org/poi/hpsf/how-to.html#sec4) shows how to create a new
document and its properties, so when I use that code, it overwrites my current
files.  I have gotten it so that I can read in the properties by feeding the
MutablePropertySet the PropertySet of the file, like this:
MutablePropertySet mps = new MutablePropertySet(new PropertySet(si));
While debugging and looking at it, it has all the properties from the file I
read in plus the properties I added/changed, which is good.  The big problem I
am having is writing these changes back to the file.  I can write the new
document properties back fine, but that is all it writes back (the original file
is lost).  How can I get around this?  Any help will be appreciated.

Andrew


---------------------------------------------------------------------
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