From the example below, you will only get the HTML.
A browser does the same, then parses the document, then loads the images, then displays the whole lot.
Quote:
> using the webbrowser control, ...
You must have slipped somewhere.
If you want the whole lot, use the IE control (webbrowser control), it downloads everything, as your browser will. From VB, you have access to the webbrowser.Document, which contains the images collection.
I'm sorry - this is such an annoying problem for me that I feel I must repost over and over until I get an answer <grin>
Can anyone fill in this function? (using the webbrowser control, the internet transfer control, or any api functions) The only constraint is that IMAGES CAN'T BE DOWNLOADED.
public function DownloadHTML( byval href as string) as HTMLDocument
...
end function
This is the closest I've come, but it only gets the body of the html, and I want ALL of it -
public function DownloadHTML( byval href as string) as HTMLDocument
dim htmlString as string
dim htmlDoc as htmlDocument
htmlstring = inet1.openurl( href, icString)
set htmldoc = new htmldocument
htmldoc.open
htmldoc.close
htmldoc.body.innerhtml = htmlstring
set downloadhtml = htmldoc
end function