Hi Ariel,
We created an ran the test application following your advice.
We found that xDocProps->getKeywords() and
xDocProps->getDocumentStatistics() return empty sequences although OO
documents do have properties viewable via OO GUI.
try
{
Sequence< OUString > aSNL = xDocProps->getKeywords();
printf("Keywords:\n");
OUString format(RTL_CONSTASCII_USTRINGPARAM(" %s\n"));
for( sal_Int32 i = 0; i < aSNL.getLength(); i++ )
{
wprintf(format.getStr(),aSNL[i]);
}
}
aSNL.getLength() returns 0
try
{
Sequence< ::com::sun::star::beans::NamedValue > aNV =
xDocProps->getDocumentStatistics();
printf("DocumentStatistics:\n");
OUString format(RTL_CONSTASCII_USTRINGPARAM("%s:
%s\n"));
for( sal_Int32 i = 0; i < aNV.getLength(); i++ )
{
//some code goes here
}
aNV.getLength() returns 0
Regards,
Alona
-----Original Message-----
From: Ariel Constenla-Haile [mailto:[email protected]]
Sent: Tuesday, October 25, 2011 6:41 PM
To: [email protected]
Subject: [users] Re: API to retrieve document metadata
Hi Alona,
On Mon, Oct 24, 2011 at 04:41:50PM -0400, Alona Rossen wrote:
> metadata listed under File->Properties->Statistics in OpenOffice
> (number of pages, paragraph count, word count, etc).
I see I didn't include those in the example.
See the version I attach now.
Regards
--
Ariel Constenla-Haile
La Plata, Argentina
--
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help