Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing RTF and HTML into plain text
Message
From
20/08/2012 16:24:01
 
 
To
20/08/2012 15:48:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01550837
Message ID:
01550845
Views:
84
>
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform