[Article] OpenOffice.org and Python

S

Sybren Stuvel

Hi folks!

The two small snippets I wrote two days ago were well received. With
the danger of being called a hero I proceded and wrote a proper
article about OpenOffice.org and Python.

It contains the following sections:

* Preparation
* Gaining access to a document
* Getting to the data
* Converting from/to Excel or to PDF
* Processing all files in a directory
* Automatically starting OOo
* More information

Please post feedback here or on my website at
http://www.stuvel.eu/archive/31

Enjoy the article at http://www.stuvel.eu/ooo-python

Sybren
 
M

MC

Thanks!

But:
- and Python 2.4.x?
- I have Python 2.4 and then "embbed Python 2.3 of OOo" ; how install
some things in this last Python? I dream to call Pywin32 from OOo...
- when I drive OOo from Python, via COM/Ole-automation, many things
not run (getStruct...); no solution?
 
S

Sybren Stuvel

MC enlightened us with:

You're welcome!
- and Python 2.4.x?

I've used Python 2.4.3 to write the article.
- I have Python 2.4 and then "embbed Python 2.3 of OOo" ; how
install some things in this last Python? I dream to call Pywin32
from OOo...

Please rephrase that question, it doesn't make much sense to me.
- when I drive OOo from Python, via COM/Ole-automation, many
things not run (getStruct...); no solution?

I don't know, I don't use Windows. You also describe a method that
wasn't used in my article. Perhaps it would be better if you did use
the methods I describe.

Sybren
 
O

olive

Sybren,

you did not understand Michel question because Ubuntu seems to be the
only distribution coming with OpenOffice and Python 2.4 compiled
together.

Others platform such as Windoze are limitated to Python 2.3 when
working with OpenOffice and compiling is a pain especially under
Windoze.

Olivier.
 
S

Sybren Stuvel

olive enlightened us with:
you did not understand Michel question because Ubuntu seems to be
the only distribution coming with OpenOffice and Python 2.4 compiled
together.

Ah, okay. I have no other distributions here, so I rely on others to
give me more information about them.
Others platform such as Windoze are limitated to Python 2.3 when
working with OpenOffice and compiling is a pain especially under
Windoze.

Poor people.

If there is anything in my code that doesn't work with Python 2.3, or
with your system in general, please let me know what code that is, and
how to fix it. I'll implement the changes into the article.

Sybren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top