Using with Python

Java, C++, C#, Delphi, ??? - Using the UNO bridges

Using with Python

Postby henokino » Mon Apr 30, 2012 10:17 am

I was wondering if i can use open office with a program in python.
I want to be able to do many of the functionality form creating a spreadsheet to updating different components to operating on them. How can i do this? Does open office have an SDK for this? THANK YOU!
openoffice 2 ubuntu 9.10
Posts: 1
Joined: Mon Apr 30, 2012 9:59 am

Re: using open office with python

Postby Hagar Delest » Mon Apr 30, 2012 10:32 am

Hi and welcome to the forum!

See Need thorough documentation of OOo BASIC objects, etc. Several links in the various topics.

For the SDK:
Python can be used with OOo.

Please add '[Solved]' at the beginning of your first post title (edit button) if your issue has been fixed.
AOO 4.1.7 on Xubuntu 20.04 and 4.1.5 on Windows 10 (with winPenPack port).
User avatar
Hagar Delest
Posts: 28918
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Using with Python

Postby FJCC » Mon Apr 30, 2012 2:34 pm

Be aware that you have to use the Python that comes integrated with OpenOffice or do the integration yourself as explained here. The link points to an old page that refers to Python 2.2, rather than the 2.6 that is current in OpenOffice, but I hope it is otherwise correct.
Windows 10 and Linux Mint, since 2017
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Posts: 7680
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Using with Python

Postby WarehouseJim » Fri Mar 08, 2013 5:04 pm

You can use OpenOffice with Python, but as the Hagar Delest hints, the documentation isn't great at the moment. Because I've found it so frustrating, I've started writing some more complete documentation, which you can find at / It's only for Writer at the moment, but the biggest frustrations are simply getting going with OpenOffice / LibreOffice, once you get going it becomes a lot easier to work out how to do different tasks. The Python interfaces is actually pretty neat (a lot nicer than Java, which I expected to be the best given OO's history), it just hasn't been that well documented traditionally.
LibreOffice on Ubuntu 12.10
Posts: 3
Joined: Sat Jan 19, 2013 6:25 pm

Return to External Programs

Who is online

Users browsing this forum: No registered users and 3 guests