From: Li Chen Date: 2008-10-14T23:59:46+09:00 Subject: Re: why the object doesn't respond to its method? Hi Thomas, I guess I figure out why the object doesn't respond to its method in win32ole. Based on my other post this week someone points to me that I need to pass more parameters into the method. Please see the following scripts: Ruby will complain if I write fs.Open(file) but it works if another parameter 2 is passed. But right now I still can't figure out how to pass the right parameter(in this sample is 2). Li ############################### require 'win32ole' fs=WIN32OLE.new('SAPI.SpFileStream') p fs.ole_method("open").params file='c:/test.txt' fs.Open(file,2) #least two params fs.write("data") fs.Close -- Posted via http://www.ruby-forum.com/.