*-------------------------------------------- * open a session of IExporer *-------------------------------------------- LOCAL loIE, st loIE=CREATEOBJECT('internetexplorer.application') *-------------------------------------------- * Navigate to the web site. *-------------------------------------------- loIE.Navigate( lcSomeURL ) *-------------------------------------------- * wait until complete *-------------------------------------------- DECLARE Sleep IN kernel32 INTEGER millisec st = SECONDS() Sleep(50) DO WHILE .T. DOEVENTS DO CASE CASE loIE.readyState=4 AND NOT loIE.busy EXIT CASE loIE.readyState=3 AND SECONDS()-st > 5 EXIT CASE SECONDS()-st > 20 && miximum time I will wait for this page. EXIT ENDCASE Sleep(50) ENDDO *-------------------------------------------- * get the resulting content of the page. *-------------------------------------------- lcResult = oIE.DOCUMENT.body.outerhtml *-------------------------------------------- * don't forget to clean up your mess. *-------------------------------------------- RELEASE oIE, stHope this helps.