ye! solved with this:

           XMultiComponentFactory xmcf = m_xContext.getServiceManager();
Object desktop = xmcf.createInstanceWithContext("com.sun.star.frame.Desktop", m_xContext); XDesktop xDesktop = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, desktop);
           XComponent xCurrentComponent = xDesktop.getCurrentComponent();
XDocumentInfoSupplier xDocumentInfoSupplier = (XDocumentInfoSupplier) UnoRuntime.queryInterface(XDocumentInfoSupplier.class, xCurrentComponent); XDocumentInfo xDocumentInfo = xDocumentInfoSupplier.getDocumentInfo(); XPropertySet xDocumentPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xDocumentInfo); System.out.println("My property" + xDocumentPropertySet.getPropertyValue("property_name"));

emh... and is the way to set document infos similar to this?

Fernand Vanrie wrote:
giancarlo

do not match in Java but in basic:

thiscomponent.documentinfo.propertyvalues(0).name  or

thiscomponent.documentinfo.getpropertyvalue(" the name")


a user defined property is a property of the documentinfo and can been accesed by index or by name

hop it helps

Fernand

gives yo
wrote:


How can I get the user defined properties from an ooo file using the java ooo sdk??
I've been trying and trying with no success :(





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to