[python-win32] Automating IE

Jens B. Jorgensen jens.jorgensen at tallan.com
Wed Feb 25 17:03:35 EST 2004


I tried this on my computer navigating to a local URL and it worked just 
fine. No error and it brought up the page as expected. Can you tell us 
more about the context in which you're trying to invoke this?

Shitiz Bansal wrote:

> /Hi,/
> /CAn anybody explain me teh reason for this error and how to correct it/
> // 
> /from win32com.client import Dispatch
> //ie = Dispatch('InternetExplorer.Application')
> //ie.Visible = 1
> //ie.Navigate2('c:\\Civil.html')/
> /
> Traceback (most recent call last):
>   File "<pyshell#6>", line 1, in -toplevel-
>     ie.Navigate2('C:\\Civil.html')
>   File "<COMObject InternetExplorer.Application>", line 2, in Navigate2
> com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 
> 0, -2147467259), None)/
>  
> /thanx in advance/
>  
> /shitiz/
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Mail SpamGuard 
> <http://us.rd.yahoo.com/mailtag_us/*http://antispam.yahoo.com/tools?tool=1> 
> - Read only the mail you want.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Python-win32 mailing list
>Python-win32 at python.org
>http://mail.python.org/mailman/listinfo/python-win32
>  
>

-- 
Jens B. Jorgensen
jens.jorgensen at tallan.com

"With a focused commitment to our clients and our people, we deliver value through customized technology solutions."




More information about the Python-win32 mailing list