Dale,
Despite what Paul said, you can use the object model of the browser and directly set the content of what is being displayed. Try this in the command window:
oBrowser = createobject( "internetexplorer.application" )
oBrowser.Visible = .t.
oBrowser.Navigate( "
http://www.microsoft.com" )
* once the page has loaded, run each one seperately and look at the browser window.
obrowser.document.Body.InnerHTML = strtran( obrowser.document.Body.InnerHTML, "Microsoft", "Visual FoxPro" )
obrowser.document.Body.InnerHTML = strtran( obrowser.document.Body.InnerHTML, "Windows", "MS DOS" )
obrowser.document.Body.InnerHTML = strtran( obrowser.document.Body.InnerHTML, ".NET", ".VFP" )
You can navigate to a local html file like:
oBrowser.Navigate( "c:\Windows\MyPage.htm" )
>Does anyone know if I can display in the Web Browser a HTML document from memory? What I have is a HTML doc stored in a VFP table or on disk and I do a FILETOSTR() on it. I do some conversion to the variable and then I want to show that in the Web Browser. When I tried to navigate() it only takes an URL as entry.