T
Tosco
I need to upgrade from vb6 to vb2005 an application that uses a
WebBrowser control and some api to do this:
Dim PageText As String
Sub Main
WebBrowser.Navigate URL
End Sub
Sub WebBrowser_DocumentComplete
Dim HtmlDoc As IHTMLDocument2
HtmlDoc = WebBrowser.Document
PageText = HtmlDoc.body.outerHTML
URLDownloadToFile(0&, HtmlDoc.images(0).Src, FileName,
BINDF_GETNEWESTVERSION, 0&)
End Sub
I don't need to show web pages, I only need to get text and download
bitmaps.
Is it better to keep using the WebBrowser wrapper, to use System.Web or
what else?
Thanks,
Stefano
WebBrowser control and some api to do this:
Dim PageText As String
Sub Main
WebBrowser.Navigate URL
End Sub
Sub WebBrowser_DocumentComplete
Dim HtmlDoc As IHTMLDocument2
HtmlDoc = WebBrowser.Document
PageText = HtmlDoc.body.outerHTML
URLDownloadToFile(0&, HtmlDoc.images(0).Src, FileName,
BINDF_GETNEWESTVERSION, 0&)
End Sub
I don't need to show web pages, I only need to get text and download
bitmaps.
Is it better to keep using the WebBrowser wrapper, to use System.Web or
what else?
Thanks,
Stefano