D
Derek Haskin
I've been trying to use the WIL32OLE to call the
InternetExplorer.ExecCommand SaveAs command.
I've been able to get it to work in the interface mode
where it displays a dialogue browser to save the file,
but have been unable to get it to work in
non-interface mode where you pass it the file to save
to.
Following is an extract of the code I am using.
require 'win32ole'
ie =3D WIN32OLE.new('InternetExplorer.Application')
ie.visible =3D true
myUrl =3D "http://www.google.com"
ie.navigate myUrl
sleep 1
ie.document.execCommand("SaveAs",false,"C:\\derek\\myFile.htm")
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20
InternetExplorer.ExecCommand SaveAs command.
I've been able to get it to work in the interface mode
where it displays a dialogue browser to save the file,
but have been unable to get it to work in
non-interface mode where you pass it the file to save
to.
Following is an extract of the code I am using.
require 'win32ole'
ie =3D WIN32OLE.new('InternetExplorer.Application')
ie.visible =3D true
myUrl =3D "http://www.google.com"
ie.navigate myUrl
sleep 1
ie.document.execCommand("SaveAs",false,"C:\\derek\\myFile.htm")
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20