Friday, May 28, 2010
Getting the IE Browser Instance from VB.Net
Dim m As Object = Type.Missing
Dim wb As IShellWindows
Dim ie As InternetExplorer
For Each ie In New ShellWindows()
If Not ie.LocationURL.Contains("file://") Then
ie.Offline = True
Dim Doc As mshtml.HTMLDocumentClass
Doc = ie.Document
Dim ohtml As mshtml.HTMLDocumentClass
If (Doc.GetType().FullName = "mshtml.HTMLDocumentClass") Then
ohtml = Doc
End If
sql &= ohtml.body.innerHTML.ToString
End If
Next
Subscribe to:
Posts (Atom)
