Yes, you have to wait for page/file to load. See
Re: Retrieve value from HTML Page Message #
902325 and
Re: Automate login procedure in a web page Message #
806332.
>When I try to exec this code:
>oIE = CREATEOBJECT("InternetExplorer.Application")
>oIE.Navigate("c:\temp\Q40WA0.html")
>oIE.ExecWb(6,2,0,0) && Goes straight to printer, no prompt
>*oIE.Visible = .T.
>*oIE.ExecWb(6,0,0,0) && Shows page, and displays printer prompt
>
>it is OLE error code 0x80040100
>
>May be page don't load when I try to do oIE.ExecWb?
>In debugger step after step all OK.
>
>How to check completion of the loading c:\temp\Q40WA0.html ?
>
>
>
>
>
>>See Re: Internet explorer Message #
547566
--sb--