Hi,
Up until last week I had code that worked quite simply to navigate in a webrowser control to a website and take a screenshot of that website. Suddenly however the code has stopped working. The first error I received was that the webbrowser1.navigate member was not found despite the Internet Controls reference being checked. That I solved by changing from the ieframe reference to the shdocvw reference. When I ran my code again the website did load but I then received an automation error at Do Events. Could someone help solve either of the two problems for me, I've tried wiping vb off my machine and reloading without any luck. I've shown my code below.
WebBrowser1.Navigate "
Do
DoEvents
Loop Until WebBrowser1.Busy = False
SaveScreen "C:\yahoo.bmp"
Thanks,
Mike
Up until last week I had code that worked quite simply to navigate in a webrowser control to a website and take a screenshot of that website. Suddenly however the code has stopped working. The first error I received was that the webbrowser1.navigate member was not found despite the Internet Controls reference being checked. That I solved by changing from the ieframe reference to the shdocvw reference. When I ran my code again the website did load but I then received an automation error at Do Events. Could someone help solve either of the two problems for me, I've tried wiping vb off my machine and reloading without any luck. I've shown my code below.
WebBrowser1.Navigate "
Do
DoEvents
Loop Until WebBrowser1.Busy = False
SaveScreen "C:\yahoo.bmp"
Thanks,
Mike