Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing RTF and HTML into plain text
Message
De
21/08/2012 17:36:34
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
21/08/2012 17:34:05
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:
01550938
Vues:
56
Sorry Tc, I guess I should read the thread better before answering.

>Thanks James, but I was already doing that (see below).
>
>>The rich text control has a totext or text or something like that. You just load the the RTF text into the control and the obj.text to get out plain text. I did that a couple of years ago and it was fairly fast. Let me know if you have problems and I will dig up some code for you.
>>
>>>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
>>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform