Joined: 28 Nov 2011
|Posted: Mon Nov 28, 2011 1:59 pm Post subject: Writing into openoffice writer from Ipython
I am an engineer and use writer to write my calcs simply because I find the equation editor is really good. I tend to do my calcs using Ipython (basically a python console for scientists: see ipython.org ) sometimes with some bespoke scripts I've written and then type the results in my document. That's not very efficient because I actually write twice the same thing (once in Ipython and then in writer).
It would be very nice if I could understand how to write from a python script into a writer document where the cursor is. I would need to add:
formula (Ooo Math syntax)
Something similar to:
doc.write.math("a cdot x^2 + b cdot x + c = 0")
would be very sweet.
I have seen that there is pyUNO but I am not sure where to start.
Can somebody nudge me in the right direction?