OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Writing into openoffice writer from Ipython

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
YannigR
Newbie
Newbie


Joined: 28 Nov 2011
Posts: 1

PostPosted: Mon Nov 28, 2011 1:59 pm    Post subject: Writing into openoffice writer from Ipython Reply with quote

Hello all,

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:
    text
    formula (Ooo Math syntax)
    Tables


Something similar to:
Code:
doc.write.text("My text")
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?

Thanks

Yannig
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group