I am trying to create a python program (using pyUNO) to make some changes to the Calc OpenOffice worksheet.
I launched OpenOffice earlier in accept mode to be able to connect from an external program. Apparently it should be as simple as:
import uno
But I get an AttributeError when I try to access loadComponentFromURL . If I create dir(DESKTOP) , I only see the following attributes / methods:
['ActiveFrame', 'DispatchRecorderSupplier', 'ImplementationId', 'ImplementationName', 'IsPlugged', 'PropertySetInfo', 'SupportedServiceNames', 'SuspendQuickstartVeto', 'Title', 'Types', 'addEventListener', 'addPropertyChangeListener', 'addVetoableChangeListener', 'dispose', 'disposing', 'getImplementationId', 'getImplementationName', 'getPropertySetInfo', 'getPropertyValue', 'getSupportedServiceNames', 'getTypes', 'handle', 'queryInterface', 'removeEventListener', 'removePropertyChangeListener', 'removeVetoableChangeListener', 'setPropertyValue', 'supportsService']
I read that there is an error doing the same thing, but in OpenOffice 3.0 (I use OpenOffice 3.1 over Red Hat5.3). I tried using the workaround described here , but they don't seem to work.
Any ideas?
python pyuno
Khelben
source share