I have an old binary Ruby 1.6.8 running on my Windows 2000 development
laptop. It doesn't have a C/C++ compiler environment on it. The only
thing I need to complete this one project is a win32ole.so file that
would be compatible with it. Can anyone please e-mail me the file if
they have it on their Win32 machine? My setup has a mswin32-ruby16.dll
file to give you an idea what I'm looking for in terms of the
win32ole.so file. Many thanks!
gregarican wrote:
[...] The only thing I need to complete this one project is a win32ole.so file that
would be compatible with it. Can anyone please e-mail me the file if
they have it on their Win32 machine? My setup has a mswin32-ruby16.dll
file to give you an idea what I'm looking for in terms of the
win32ole.so file. Many thanks!
It's in here:
ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ext/win32ole-0.5.2-i586-mswin32-1.6.zip
daz
daz wrote:
It's in here:
ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ext/win32ole-0.5.2-...
daz
Thanks so much for pointing this out to me. Now my code should be a lot
nicer. I can use:
winword=WIN32OLE.new('Word.Application')
winword.Documents.Open("#{@myWordDocument}")
winword.visible = true
As opposed to this:
tempFolder=ENV['TEMP']
launchFile=File.new("#{tempFolder}\\launchFile.bat", "w")
word2k="c:\\program files\\microsoft office\\office\\winword.exe"
wordXp="c:\\program files\\microsoft office\\office10\winword.exe"
word2k3="c:\\program files\\microsoft office\\office11\winword.exe"
wordExe=word2k if File.exist?(word2k)
wordExe=wordXp if File.exist?(wordXp)
wordExe=word2k3 if File.exist?(word2k3)
launchFile.write("\"#{wordExe}\" \"#{@myWordDocument}\"\nexit\n")
launchFile.close
system("#{tempFolder}\\launchFile.bat")