>>>I have set up a web browser Active X control on a form and it runs great.
>>>
>>>But, I would also like to store the incoming HTML code into a foxpro table or into a foxpro memory variable.
>>>
>>>I was told something about InnerHTML or OuterHTML properties holding onto the HTML information. But, I cannot find these properties.
>>>
>>>Any suggestions?
>>
>>You can use oIE.Document.Body.OuterHTML.
>
>there is no oIE object
>
>There are only 2 objects
>The form called 'form1'
>the active x control web browser called 'olecontrol1'
>i tried using olecontrol1.document.body.outerHTML but the 'document' object does not exist in the olecontrol1
>
>how do i create this oIE object?
oIE is just the name that I commonly use to reference a WebBrowser control or an instance of InternetExplorer.Application. You can rename your "olecontrol1" to oIE, or anything you like.
The document object does not exist until a document is loaded into the Webbrowser control, and that's why you got an error when you tried to reference it. That means
finished loading. Because the Navigate method is asynchronous, you have to poll oIE.ReadyState before you can refer to the document object.
Erik Moore
Clientelligence