From: MikkelFJ Date: 2002-08-11T01:26:41+09:00 Subject: Re: win32ole and excel "Masaki Suketa" wrote in message news:200208101237.VAA02828@smtp2.nifty.ne.jp... > > Well, I tried patch, but I've never done that before and got > > patching file `win32ole.c' > > Hunk #1 FAILED at 1762. > > 1 out of 1 hunk FAILED -- saving rejects to win32ole.c.rej > > Sorry, I sended email to you, but I recieved following message: > ----- The following addresses had permanent fatal errors ----- > You should remove "-anti-spam" > > Could you try following file? > http://homepage1.nifty.com/markey/ruby/win32ole/win32ole.c.zip Now that is what I call progress - it is smaller than the old file, but it works a lot better. Thanks - if this is a general solution, perhaps Ruby can finally be used to test COM components (and drive them) This is really great news. This works: require 'win32ole' mdm = WIN32OLE.new('MDM.Document.2') mdm.Save 'testfile.mdd' #mdm._invoke(0x00000022, ['testfile_invoke.mdd'], [VT_BSTR]) mdm.Save puts 'done' thanks :-) Mikkel