Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to save to file the result of compound web page
Message
 
To
15/04/2007 22:57:25
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01216100
Message ID:
01217641
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform