Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing RTF and HTML into plain text
Message
De
20/08/2012 16:24:01
 
 
À
20/08/2012 15:48:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01550837
Message ID:
01550845
Vues:
86
>
>and the same for IE to parse HTML. If not, is there anyway to pass a variable or variable contents to IE.Navigate intead of URL or file name?
>
>
>loIE   = CREATEOBJECT("InternetExplorer.Application")
>loIE.Navigate(m.myHTMLText)
>DO WHILE loIE.Busy OR loIE.ReadyState <> 4
>	DOEVENTS
>ENDDO
>m.PlainText2 = loIE.Document.documentElement.innertext
>?m.PlainText2
>
Was 2 computer generations ago when I was hacking similar stuff -
you could stuff strings down IE, but it did not always chew on them like when loading a file.
I wrote them out from memo to temp file, less than 5% perf loss.

So speedwise file access was minimal compared to the hog of IE.
Browsers gotten faster, but I doubt that writing to file will kill perf...
but the great help IE reusing for parsing was climbing through the nodes instead
of always parsing, scratching head an coding on....
not one shots like the example.

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform