Win32com usage of IE raises exception.. (how do I interpret win32com errs?)

Andrew Markebo flognat at flognat.myip.org
Tue Apr 16 04:23:21 EDT 2002


I am trying to reuse some win32com demo that was posted ages ago in
this group, firing up ActiveState Python (i tried the python.org
python+win32com, same 'problem), win32makepy, and the code:

>>> import win32com.client
>>> ie = win32com.client.Dispatch('InternetExplorer.Application')
>>> ie.Navigate("http://www.microsoft.com")
Traceback (most recent call last):  
   File "<interactive input>", line 1, in ?  
   File "C:\Python22\Lib\site-packages\win32com\gen_py\EAB22AC0-30C1-11CF-A7EB-0000C05BAE0Bx0x1x1.py",
        line 1100, in Navigate    return self._oleobj_.InvokeTypes(0x68,
        LCID, 1, (24, 0), ((8, 1), (16396, 17), (16396, 17), (16396, 17),
        (16396, 17)),URL, Flags, TargetFrameName, PostData,
        Headers)com_error: (-2147352567, 'Exception occurred.', (0, None,
        None, None, 0, -2147467259), None)

What have I done wrong? Anyone who has a good class/functions for
using IE as browser, fetching stuff and so on.. 

How do I get into win32com 'programming'/usage?? Read the docs?

        /Andy

p.s. The 'tutorial' I fetched inspiration from is:
        http://mail.python.org/pipermail/edu-sig/2000-September/000636.html

about 1.5 years old.. 

-- 
 The eye of the beholder rests on the beauty!



More information about the Python-list mailing list