-
I need help with this problem:
I'm using the OpenURL method to download a web page.
Some pages arrive complete, while others are incomplete.
In these cases I get Status 9 (=The control is disconnecting from the host computer).
How do I get the whole page loaded or continue loading?
Any help is appreciated.
-
Take a look at my thread from a while ago which Chris answered on how to get the HTML Source using MSInet.
A better way which is most likely to always work is get the source using the ShDocVw.dll (Webbrowser) Control.
Code:
Text1.Text = Webbrowser1.Document.documentElement.innerHTML
It doesn't put in the <html></html> tags, but you can always add them yourself.
Code:
Text1.text = "<HTML>" & Chr$(13) & Chr$(10) & Webbrowser1.Document.documentElement.innerHTML & Chr$(13) & Chr$(10) & "</HTML>"