Nick, I downloaded the v3.6 source code and looked at the detail of the
POIXMLPropertiesTextExtractor class. The method I think I want to emulate
is getCustomPropertiesText().
public String getCustomPropertiesText()
{
StringBuffer text = new StringBuffer();
org.openxmlformats.schemas.officeDocument.x2006.customProperties.CTProperties
props =
getDocument().getProperties().getCustomProperties().getUnderlyingProperties();
CTProperty[] properties = props.getPropertyArray();
for(int i = 0; i<properties.length; i++)
{
// TODO - finish off
String val = "(not implemented!)";
text.append(properties[i].getName() + " = " + val
+ "\n");
}
return text.toString();
}
Alas, the most important piece (getting the custom property value) is TBD.
Is this where you recommended I look, or have I gone to the wrong spot?
From:
Nick Burch <[email protected]>
To:
POI Users List <[email protected]>
Date:
08/27/2010 01:15 PM
Subject:
Re: Reading XLSM custom Properties
On Fri, 27 Aug 2010, Thomas P Laford wrote:
> But the XSSLExcelExtractor does not have a method to retrieve the
> Document Summary info. Am I missing something fundamental about the
> differences in the pre-2007 and post 2007 office files?
Alas the two file formats store their properties in a very very different
way...
I'd suggest you take a look at POIXMLPropertiesTextExtractor, which should
be a good example for how to work with the OOXML properties
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]