Hi Alona, On Mon, Oct 24, 2011 at 04:41:50PM -0400, Alona Rossen wrote: > Please suggest OOo API to retrieve document metadata. For example, > metadata listed under File->Properties->Statistics in OpenOffice (number > of pages, paragraph count, word count, etc).
every document implements com.sun.star.document.XDocumentPropertiesSupplier http://api.openoffice.org/docs/common/ref/com/sun/star/document/XDocumentPropertiesSupplier.html getDocumentProperties() returns an css.document.XDocumentProperties http://api.openoffice.org/docs/common/ref/com/sun/star/document/XDocumentProperties.html In OOo Basic: Sub Main Dim oDoc as Object oDoc = ThisComponent Dim oDocProps as Object oDocProps = oDoc.getDocumentProperties() End Sub Inspect oDocProps in the OOo Basic IDE. Regards -- Ariel Constenla-Haile La Plata, Argentina
pgp8SGOQJlyli.pgp
Description: PGP signature