Hi,
I am using poi.hpsf to update custom properties in word document.
Example:
POIFSFileSystem poifs=...
DocumentSummaryInformation dsi=...
.
.
.

CustomProperties customProperties = dsi.getCustomProperties();
 customProperties.put(new String("Date"), new Date());
dsi.setCustomProperties(customProperties);
DirectoryEntry dir = poifs.getRoot();
dsi.write(dir, DocumentSummaryInformation.DEFAULT_STREAM_NAME);
OutputStream out;
try {
   out = new FileOutputStream(name);
   poifs.writeFilesystem(out);
} catch (IOException e) {e.printStackTrace();}

---------------------------------------------------
The new file has changed property Date but the page header has a reference to
this changed property and is not automaticaly changed.
Does anyone know how to update all reference in word document using poi api.
 



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