[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: MS Windows automation - howto use it?

Roshan James

3/17/2005 6:16:00 AM

Ruby simply talk to the COM automation server that the office
applicatiosn expose. What that means is that it simply talks to the same
object model that macros in Vbscript talk to.

So whats the simply way of figuring out whats avilable? Simply just look
at the Object Browser that comes with office application. You can launch
the Vbscript editor that comes in Word or any of the other office apps
and then take a look at the Object Browser. This basically uses a COM
based reflection API to show you everything that office can do.

Further, if you pick up a book about VBA (Visual Basic for Applications)
programming, it will show a large part of the commonly used objects and
API.

Roshan



3 Answers

Martin DeMello

3/17/2005 6:32:00 AM

0

Roshan James <roshanj@microsoft.com> wrote:
>
> So whats the simply way of figuring out whats avilable? Simply just look
> at the Object Browser that comes with office application. You can launch
> the Vbscript editor that comes in Word or any of the other office apps
> and then take a look at the Object Browser. This basically uses a COM
> based reflection API to show you everything that office can do.

Hm - how hard would it be to get at this reflection API from ruby?

martin

Adelle Hartley

3/17/2005 7:07:00 AM

0

> Hm - how hard would it be to get at this reflection API from ruby?
>
> martin
>

OLE object browser, in Ruby.

http://homepage1.nifty.com/markey/ruby/win32ole/in...

Adelle.



Martin DeMello

3/17/2005 8:04:00 AM

0

Adelle Hartley <adelle@bullet.net.au> wrote:
> > Hm - how hard would it be to get at this reflection API from ruby?
>
> OLE object browser, in Ruby.
>
> http://homepage1.nifty.com/markey/ruby/win32ole/in...

Thanks! That's pretty nifty.

martin