On Mon, 3 Oct 2011, Rahul Dev Vardhan wrote:
It works fine for .doc, .xls and .ppt files, but i am not able to implement the same functionality for .docx, .xlsx and .ppts files.
Nope, the OOXML file formats use a very different container, and properties are stored in a totally different manner
The usermodel classes for DOCX, XLSX and PPTX all extends from POIXMLDocument which provide a way to get at the properties. (Alternately, you can just create a POIXMLProperties class for a OPCPackage). From this, you can get at the various kinds of properties, and read/write/add them
I'm not sure if we have any examples for writing them (and if not, please do submit an example when you're done!). We do have a good example for reading though, in the form of POIXMLPropertiesTextExtractor
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
