[python-win32] Dispatch InternetExplorer.Application fails
Rickey, Kyle W
Kyle.Rickey at bakerhughes.com
Tue May 27 19:26:45 CEST 2008
Whenever I try the following:
>> import win32com.client
>> ie = win32com.client.Dispatch("InternetExplorer.Application")
I get this traceback:
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Python25\Lib\site-packages\win32com\client\__init__.py", line
95, in Dispatch
dispatch, userName =
dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "C:\Python25\lib\site-packages\win32com\client\dynamic.py", line
98, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Python25\lib\site-packages\win32com\client\dynamic.py", line
78, in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.IID_IDispatch)
com_error: (-2147024894, 'The system cannot find the file specified.',
None, None)
Any ideas what would cause this? My end goal is to COM into IE and load
an xml file, then print it to PDF.
-Kyle Rickey
More information about the python-win32
mailing list