Hi Rainer,
Rainer Klute schrieb:
Hi Sven,
can you see your special properties in other programs, e.g. the
Windows Explorer?
No, I can only see them in the POIBrowser or a Hexeditor. Word,
OpenOffice or Windows Explorer don't display anything.
When writing a section with a dictionary, HPSF checks whether the
dictionary's codepage has been set. If it is not set, it sets it to
Unicode. This might cause problems if you have non-Unicode strings as
property values.
You should try the set the codepage explicitly like this:
mySection.setProperty(PropertyIDMap.PID_CODEPAGE, Variant.VT_I2, new
Integer(1252));
Please tell me whether this solves your problem! If it does, I'll add
a setCodepage() method to MutableSection.
No, it didn't work. I guess something is missing. I compared two
documents with the same properties. The first one created with MS Word,
the second with POI. The section created with MS Word contains four
properties, the other one just three. The fourth property is displayed as
Property ID: -2147483648, type: 19, value: [EMAIL PROTECTED]
in the ReadCustomPropertySets example. The version of POI I'm using is
3.0 alpha1 20050704.
HTH
Sven
---------------------------------------------------------------------
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/