I think I found the trouble. The variable being set to the document contents is attempting to get set before IE retrieves the web page. If done line-by-line, and waiting for the page to display, then you can set the InnerText.
Is there a way to sense whether IE has retrieved the entire page?
---Michael Reynolds
> -----Original Message----- > From: jgunva - John C. Gunvaldson [mailto:jgunvaldson /AT/ dataquick D.O.T com] > Sent: Friday, February 28, 2003 02:32 PM > To: profox@leafe.com > Subject: RE: Easy HTML to text function? > > > If you do > > LOCAL ieobj as InternetExplorer.Application > > and begin to code your following, intellisense does not recognize > ieobj.Document.body.innertext - and errors with --> > > "Member DOCUMENT does not evaluate to an object." > > Any ideas? > > John > > > -----Original Message----- > From: profox-admin /AT/ leafe D.O.T com > [mailto:profox-admin@leafe.com]On Behalf Of > allen > Sent: > Friday, February 28, 2003 2:24 PM > To: profox /AT/ leafe D.O.T com > Subject: RE: Easy HTML to text function? > > > oops sorry yes its a typo. two left fingers. plus I missed > the document out > > ieobj = createobject("internetexplorer.application") > ieobj.navigate2("http://www.mywebsite.com") > ietext = ieobj.Document.body.innertext > ? ietext > > << snipped >> > [excessive quoting removed by server]
©2003 Reynolds, Michael |