Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting html --> text document
Message
De
12/10/2002 12:52:48
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00710635
Message ID:
00710649
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform