How to suppress SaveAs dialog box from IE?
Milan Mikic
mmikic at jwmp.com
Mon Jan 6 10:21:45 EST 2003
Dear All,
I'm trying to script IE using win32com to save a web page. My problem
is that IE allways pops up a dialog box. Does anyone know how to
suppress it?
My code is as follows:
import win32com.client,time,string
ie = win32com.client.DispatchEx("InternetExplorer.Application")
ie.Navigate("https://cds.jpmorgan.com/creditderivatives/cgi-bin/MPshowCurves?market=ASA")
doc = ie.Document
doc.ExecCommand("SaveAs",0,"c:\\temp\\fihur.htm")
Where am I going wrong?
Many Thanks,
Milan
More information about the Python-list
mailing list