Re: [python-win32] Help! How to get IHTMLDocument3 dispatch object?

2010-05-27 Thread Tim Roberts
Xin Zhao wrote: Thanks for your kind reply. I tried the new iid, doesn't help. :( import pythoncom wo=pythoncom.New('InternetExplorer.Application') wo.QueryInterface('{3050f485-98b5-11cf-bb82-00aa00bdce0b}') Traceback (most recent call last): File stdin, line 1, in ?

Re: [python-win32] Help! How to get IHTMLDocument3 dispatch object?

2010-05-27 Thread Tim Roberts
Xin Zhao wrote: I am not sure I follow you. What I did was: --- wo = pythoncom.New('InternetExplorer.Application') import win32com.client w = win32com.client.Dispatch(wo)

Re: [python-win32] Help! How to get IHTMLDocument3 dispatch object?

2010-05-27 Thread Xin Zhao
I am not sure I follow you. What I did was: --- wo = pythoncom.New('InternetExplorer.Application') import win32com.client w = win32com.client.Dispatch(wo)

[python-win32] Help! How to get IHTMLDocument3 dispatch object?

2010-05-26 Thread Xin Zhao
Hey, I am trying to get the Dispatch object of IHTMLDocument3, so I wrote the following code wo = pythoncom.New('InternetExplorer.Application') wo.QueryInterface('{3050F673-98B5-11CF-BB82-00AA00BDCE0B}') But got the following error: pywintypes.com_error: (-2147467262, 'No such interface