Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Browser displaying memory?
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00637846
Message ID:
00638041
Views:
30
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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform