Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ruby and COM(ActiveX)

250 views
Skip to first unread message

D'Andrew Thompson

unread,
Sep 1, 2005, 1:35:44 PM9/1/05
to
Does anyone know if there is a COM component for Ruby offering an
interface to COM (ActiveX) controls?

Something in the vein of http://www.python.org/windows/win32com/

Thanks, dave
--
~~~~~~~~~~~~~~~~~~~
D'Andrew Thompson
http://dathompson.blogspot.com


Wes Moxam

unread,
Sep 1, 2005, 1:46:20 PM9/1/05
to
If you install ruby using the windows installer it should already be
installed.

ex:

require 'win32ole'
excel = WIN32OLE.new('Excel.Application')
excel.visible = TRUE
workbook = excel.Workbooks.Add();
worksheet = workbook.Worksheets(1);
worksheet.Range('A1:D1').value = ['North','South','East','West'];


Documentation is here: http://www.ruby-doc.org/stdlib/libdoc/win32ole/rdoc/

-- Wes

stevetuckner

unread,
Sep 1, 2005, 1:51:39 PM9/1/05
to
D'Andrew Thompson wrote:

>Does anyone know if there is a COM component for Ruby offering an
>interface to COM (ActiveX) controls?
>
>Something in the vein of http://www.python.org/windows/win32com/
>
>Thanks, dave
>
>

Its called Win32OLE and it is part of the standard windows distribution
(One Click Installer). See
http://www.rubycentral.com/book/lib_windows.html for some documentation
on it.

Steve Tuckner

0 new messages