Re: Python/UNO/OpenOffice?

2006-10-02 Thread olive
For me the problem is that OO2.0 is compiled against P2.3. Is there any OO compiled with P2.4x for Windows somewhere ? Sybren Stuvel wrote: Aside from what has already been said, it might be nice for you to read my article about OOo and Python at http://www.stuvel.eu/ooo-python ;-) --

Re: Python/UNO/OpenOffice?

2006-10-02 Thread Colin J. Williams
wesley chun wrote: as others have said, that project provides a working interface to OOo (OpenOffice 2 on Ubuntu Breezy and Dapper). i've made several posts to this regard over the summer here on CLP. i was mostly using it to mess around with documents in StarWriter. cheers, -- wesley -

Re: Python/UNO/OpenOffice?

2006-10-02 Thread John Machin
Colin J. Williams wrote: I've done some small things with Python/OpenOffice, using Windows XP. They appear to work OK. As you might have noticed from my earlier post, I can't get off the ground. Can you please give an example (with code) of a small thing that works OK? TIA, John --

Re: Python/UNO/OpenOffice?

2006-10-02 Thread olive
John, Here is something that works for me under XPsp2 to either save a doc or save it as PDF: filepath = argv[0] exportpdf = argv[1] ctxLocal = uno.getComponentContext() smgrLocal = ctxLocal.ServiceManager resolver =

Re: Python/UNO/OpenOffice?

2006-10-02 Thread olive
... and you have to start your py file with: import uno, sys, socket from com.sun.star.beans import PropertyValue ... and your start_oo_server.bat file with: @SET PYTHONPATH=C:\Program Files\OpenOffice.org 2.0\program;C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib @SET

Re: Python/UNO/OpenOffice?

2006-10-02 Thread John Machin
olive wrote: ... and you have to start your py file with: import uno, sys, socket from com.sun.star.beans import PropertyValue ... and your start_oo_server.bat file with: @SET PYTHONPATH=C:\Program Files\OpenOffice.org 2.0\program;C:\Program Files\OpenOffice.org

Re: Python/UNO/OpenOffice?

2006-10-02 Thread Sybren Stuvel
John Machin enlightened us with: Many thanks for all that, olive; I made the minimal hacks to make it open an XLS ffile, and it worked! I'll try to see why that worked and my previous experiment crashed inside a DLL. Thanks, keep us posted! Sybren -- Sybren Stüvel Stüvel IT -

Re: Python/UNO/OpenOffice?

2006-10-01 Thread Sybren Stuvel
John Machin enlightened us with: Hi, Sybren. I tried folloing your recipe on Windows with OOo 2.0 ... Minor problem: the executable is called soffice, not ooffice. Major problem: it crashed right at the start, somewhere in the maze of dlls. That's not nice. Has anyone managed to get

Re: Python/UNO/OpenOffice?

2006-09-30 Thread Gary Herron
[EMAIL PROTECTED] wrote: Are then any currently active and reasonably mature Python plugins/ apis/whatever for programming/scripting OpenOffice? The page I've found is http://udk.openoffice.org/python/python-bridge.html, but it was last updated more than a year ago. Thanks, Ken I don't

Re: Python/UNO/OpenOffice?

2006-09-30 Thread gregarican
That's what I would imagine. Kind of like calling some Microsoft Office COM/OLE methods in a wrapper. As long as the wrapper has most of the methods you need and the core COM/OLE calls don't change then that's a great start. Gary Herron wrote: [EMAIL PROTECTED] wrote: Are then any currently

Re: Python/UNO/OpenOffice?

2006-09-30 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: Are then any currently active and reasonably mature Python plugins/ apis/whatever for programming/scripting OpenOffice? The page I've found is http://udk.openoffice.org/python/python-bridge.html, but it was last updated more than a year ago. Aside from

Re: Python/UNO/OpenOffice?

2006-09-30 Thread wesley chun
as others have said, that project provides a working interface to OOo (OpenOffice 2 on Ubuntu Breezy and Dapper). i've made several posts to this regard over the summer here on CLP. i was mostly using it to mess around with documents in StarWriter. cheers, -- wesley - - - - - - - - - - - - - -

Re: Python/UNO/OpenOffice?

2006-09-30 Thread John Machin
Sybren Stuvel wrote: [EMAIL PROTECTED] enlightened us with: Are then any currently active and reasonably mature Python plugins/ apis/whatever for programming/scripting OpenOffice? The page I've found is http://udk.openoffice.org/python/python-bridge.html, but it was last updated more than

Python/UNO/OpenOffice?

2006-09-29 Thread kenneth . m . mcdonald
Are then any currently active and reasonably mature Python plugins/ apis/whatever for programming/scripting OpenOffice? The page I've found is http://udk.openoffice.org/python/python-bridge.html, but it was last updated more than a year ago. Thanks, Ken --

Re: Python/UNO/OpenOffice?

2006-09-29 Thread gregarican
Just because the last code update was a little over a year ago doesn't mean the UNO project is dead. If the OpenOffice API has remained basically the same since UNO was last updated and the Python wrappers are relatively comprehensive then it should fit the bill. Googling around the UNO project