Embedding Python in MS-Office

View: New views
2 Messages — Rating Filter:   Alert me  

Embedding Python in MS-Office

by jazzcat2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

Does anyone have examples handy of how you might embed an IronPython
script in MSO?

For example, you might have a menu item that, when you select it, uses
Python to aggregate data from outside sources and insert the data into a
Word document or Excel cells.

My end goal here is to make an abstraction library so that if you write an
Office script, the same script can be used unmodified on MS-Office or
OpenOffice.  I've done scripts like this for OpenOffice but not MSO.

Cheers,
-JK

--

-----
http://www.globalherald.net/jb01
_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: Embedding Python in MS-Office

by Slide-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You'd have to write an add-in for office that hosted the .NET runtime and provided a hosting API that IP could interact with. I don't think this would be a small undertaking.

slide

On Wed, Nov 11, 2009 at 12:12 PM, Joshua Kramer <josh@...> wrote:

Hello,

Does anyone have examples handy of how you might embed an IronPython script in MSO?

For example, you might have a menu item that, when you select it, uses Python to aggregate data from outside sources and insert the data into a Word document or Excel cells.

My end goal here is to make an abstraction library so that if you write an Office script, the same script can be used unmodified on MS-Office or OpenOffice.  I've done scripts like this for OpenOffice but not MSO.

Cheers,
-JK

--

-----
http://www.globalherald.net/jb01
_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



--
slide-o-blog
http://slide-o-blog.blogspot.com/

_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com