Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Saving data with MSIE and OLE

Keywords: 	 Saving data with MSIE and OLE.wbt

Save the contents of any web page (or frame within the page) by navigating the WebBrowser object hierarchy. Try this to obtain the contents of a "frameless" page. This should work with IE 4.01 or greater:

Browser = ObjectOpen("InternetExplorer.Application")
While Browser.IsBusy <> 0
Yield
End While
BrowserDoc = Browser.Document
BrowserBody = BrowserDoc.Body
BrowserPage = BrowserBody.CreateTextRange
; The HTML of the page
BrowserPageHTML = BrowserPage.HTMLText
; The Text (only) of the page
BrowserPageText = BrowserPage.Text


Article ID:   W14911