The COM interop stuff looks great.
Does this mean that there's now a way to "cast" a COM object to a type (and
perform a QueryInterface) ?
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core
nt: Wednesday, April 08, 2009 9:08 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Interop with Excel
I'm replying to my own post because it looks like I found part of my
problem. I changed the code to:
require 'Microsoft.Office.Interop.Excel, Version=12.0.0.0,
Culture
ubject: Re: [Ironruby-core] Interop with Excel
When I do this, Excel opens up, but it opens up without a workbook. If I open a
file manually (via Excel's GUI), then the ActiveWorkbook is populated.
I don't know the Excel API, but if excel.workbooks.open("Foo.xls") is supposed
t
t; From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-
> boun...@rubyforge.org] On Behalf Of Jeff Siebold
> Sent: Wednesday, April 08, 2009 9:08 AM
> To: ironruby-core@rubyforge.org
> Subject: Re: [Ironruby-core] Interop with Excel
>
> I'm replying to my own post bec
I'm replying to my own post because it looks like I found part of my
problem. I changed the code to:
require 'Microsoft.Office.Interop.Excel, Version=12.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c'
include Microsoft::Office::Interop::Excel
excel = ApplicationClass.new
excel.Visible =
The following code runs fine:
require 'Microsoft.Office.Interop.Excel, Version=12.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c'
Excel = Microsoft::Office::Interop::Excel
but when I try to get the Application object as follows:
app = Excel.Application.new
I get the following err