Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save to file the result of compound web page
Message
 
À
15/04/2007 22:57:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01216100
Message ID:
01217641
Vues:
14
Hi, Alejandro!
You can save it with this code:
Clear
Local loIE As InternetExplorer.Application
loIE=Createobject('InternetExplorer.Application')
loIE.Navigate('http://news.google.com/nwshp?hl=en&tab=wn&q=')
Do While loIE.ReadyState !=4
   DoEvents
Enddo
loDocument=loIE.Document
loContent=loDocument.DocumentElement
lcContent=loContent.outerHtml
=Strtofile(lcContent,'c:\test_for_ut.htm',0)
Release loIE
wbr,
Juri


>How do you programmatically capture and save to a single file (mht) what would appear in the browser after calling a URL such as http://news.google.com/nwshp?hl=en&tab=wn&q= ?
>
>TIA,
>
>Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform