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.
> -- wesley
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Core Python Programming", Prentice Hall, (c)2007,2001
> wesley.j.chun :: wescpy-at-gmail.com
> python training and technical consulting
> cyberweb.consulting : silicon valley, ca
I've done some small things with Python/OpenOffice, using Windows XP.
They appear to work OK.
It seems that there is only one person to maintain the Python interface
and that there few users - no critical mass. I hope that this will
change as OpenOffice is, with the exception of the Base component, a
solid package. The base (database) component is evolving.
Colin J. Williams
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?
Here is something that works for me under XPsp2 to either save a doc or
save it as PDF:
> ... 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 PATH=C:\Program Files\OpenOffice.org 2.0\program;C:\Program
> Files\OpenOffice.org 2.0\program\python-core-2.3.4\bin
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.
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.