main logo
Subject: Re: Easy HTML to text function?
Author: "Ken McGinnis"
Posted: 2003/02/28 20:57:00
 
View Entire Thread
New Search


Here is what I do: ( for very large pages, this works well)

LOCAL oie AS internetexplorer.APPLICATION
oie = CREATEOBJECT( "internetexplorer.application" )
oie.VISIBLE = .T.
oie.Navigate( "www.stratfordsoftware.com" )
DO WHILE oie.Busy()
DOEVENTS
INKEY(.01)
ENDDO
oDoc = oie.DOCUMENT
lcText = oDoc.documentElement.innerText
? lcText


----- Original Message -----
From: "allen" <allen (AT) gatwicksoftware .DO.T com>
To: <profox@leafe.com>
Sent: Friday, February 28, 2003 2:43 PM
Subject: RE: Easy HTML to text function?


I just ran the following from the command line and got the text of my frontpage.htm
No it does not show the body in intellisense but remember html pages are frames and all kinds of things and I dont think
intellisense gets to grip with it all. If Im right, intellisense uses a file on the pc to get the details and not all web pages are
made the same. Im not sure though why body is not there as its the big part of a document.
Allen

aa = CREATEOBJECT("internetexplorer.application")
aa.Navigate2("http://www.gatwicksoftware.com/frontpage.htm")
ietext = aa.Document.body.innertext
? ietext

-----Original Message-----
From: profox-admin (AT) leafe .DO.T com [mailto:profox-admin@leafe.com]On Behalf Of
jgunva - John C. Gunvaldson

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?


[excessive quoting removed by server]



 
©2003 Ken McGinnis
<-- Prior Message New Search Next Message -->