Hi experts,
I used the below code in a form command button to display a web page content then copy the content into an edit box, when the url is this does work. But for some other web sites it says member BODY does not evaluate to an object (specially when the url is a pdf file.)
Please help me to solve this problem.
*****************************
SET TALK OFF
LOCAL oInet
mc=ALLTRIM(thisform.url.Value)
lcURL = [&mc]
oInet=CREATEOBJECT("InternetExplorer.Application")
oInet.Navigate([&lcURL])
DO WHILE oInet.busy
wait "busy" window nowait timeout 1
ENDDO
thisform.edit2.value=oinet.document.body.InnerText
release oInet
**************************************************
I used the below code in a form command button to display a web page content then copy the content into an edit box, when the url is this does work. But for some other web sites it says member BODY does not evaluate to an object (specially when the url is a pdf file.)
Please help me to solve this problem.
*****************************
SET TALK OFF
LOCAL oInet
mc=ALLTRIM(thisform.url.Value)
lcURL = [&mc]
oInet=CREATEOBJECT("InternetExplorer.Application")
oInet.Navigate([&lcURL])
DO WHILE oInet.busy
wait "busy" window nowait timeout 1
ENDDO
thisform.edit2.value=oinet.document.body.InnerText
release oInet
**************************************************