Problem with mshtml.HTMLDocument

SilverGhost

Newcomer
Joined
May 22, 2003
Messages
1
Hi all,

With the following vb.net code I'm able to extract the whole HTML Code. The Problem is, that it isn't the original Code (It's new formated -> All tags are upper case) But I need the original code with the original formats!!! Somone an idea?

Code:
dim doc as mshtml.HTMLDocument
dim Data as String 
doc = AxWebBrowser1.Document
Data = doc.documentElement.outerHTML

Thanks for every help
 
You'll want to use a method other than the web browser control to download the data. See the WebClient, and in particular its DownloadData method.
 
Back
Top