Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible to feed html to Explorer ole rather than url?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00930769
Message ID:
00930772
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
Hi,
I hope it help
lcHTML = "<html><body><h1>Hello World</h1></body></html>"
WITH Thisform.oleWebBrowser
  .Navigate("about:blank")
  .Document.Open()
  .Document.Write(lcHtml)
  .Document.Close()
ENDWITH
>I'm building HTML code in VFP and stuffing it into a variable. I want to then display the HTML contained in my variable. I can do this right now by using strtofile() to write the string to file and then doing thisform.oleBrowser.Navigate("c:\temp\warn.htm").
>
>I was just wondering if there is a way to skip the whole writing to file thing and get the browser control to just display the HTML. Has anyone done this?
>
>Thanks for your help.
>
>Rodd
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform