Am Montag, den 31.10.2005, 20:54 +0000 schrieb Gary Summer:
> I hve been able to use HPSF to create and set properties on a microsoft word 
> file.  However, I've been unable to find a way to create a new custom poperty 
> and set a value.  i.e. I want to create a new custom property named "Generic 
> Name" and inset a value.  Any ideas?

You can do this by constructing an appropriate dictionary. Some
information about dictionaries can be found under
<http://jakarta.apache.org/poi/hpsf/how-to.html#sec3> (scroll down to
the heading "Dictionaries"). To set a dictionary use the method
MutableSection.setDictionary(Map), see
<http://jakarta.apache.org/poi/apidocs/org/apache/poi/hpsf/MutableSection.html#setDictionary(java.util.Map)>.
 Hope this helps-

Best regards
Rainer Klute

                           Rainer Klute IT-Consulting GmbH
  Dipl.-Inform.
  Rainer Klute             E-Mail:  [EMAIL PROTECTED]
  Körner Grund 24          Telefon: +49 172 2324824
D-44143 Dortmund           Telefax: +49 231 5349423

Public key fingerprint: E4E4386515EE0BED5C162FBB5343461584B5A42E

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to