Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting html --> text document
Message
From
12/10/2002 12:52:48
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00710635
Message ID:
00710649
Views:
20
>Does anyone know of a fast program to convert an html page to a text document? I
>currently do this by opening the html page in Excel and then writing the file
>to dbf but this is not that fast.

An HTML file is already a text file. When you say cnvert it to a text document, do you mean strip the HTML encoding? If so, David Frankenbach recently posted a very neat way to do this in the MS newsgroup.
LOCAL oie as internetexplorer.application
oIE = createobject( "internetexplorer.application" )
oIE.Visible = .t.
oIE.Navigate( "www.microsoft.com" )
DO WHILE oie.Busy() && Let the page finish navigating
ENDDO
oDoc = oIE.Document
lcText = oDoc.documentElement.innerText
? lcText
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform