Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing RTF and HTML into plain text
Message
De
20/08/2012 17:29:35
 
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:
01550850
Vues:
65
Thanks Boris, I thought so, but thought it is always a good idea to see if anyone out there came up with another solution....


>>Need to parse RTF and HTML using as little overhead as possible. Haven't had to do this in years and cannot recall.
>>
>>Any functions out there to do this without automation or loading any objects into memory:
>>
>>lortf=CREATEOBJECT("richtext.richtextctrl")
>>lortf.TextRTF = m.myRTFtextdata
>>m.lcPlainText = lortf.Text
>>?m.lcPlainText
>>
>>
>>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
>>
>
>
>Sorry, NO for both questions.
>I hope I'm wrong :-)
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform