>>>Hi,
>>>
>>>Is it possible to save a Rich Text Format file into Simple Text file in Visual Foxpro 5?
>>>
>>>Nick,
>>
>>Hi Nick,
>>
>>try this:
>>create an instance of RichEdit OCX control and put your RTF text to its property TextRTF a you'll get a plaint text in its Text property.
>>
>>Sincerely,
>>Petr
>
>I need to save the information were is was found.
>I this case in the same directory.
>
>What i need to do is 1)Open the RTF 2)Save it as plain text in the same directory.
>
>Thanks
>Nick,
Hi Nick,
1) create some form and put an RichText OCX on it.
2) read your RTF text into some variable (e.g. cRTFTEXT)
3) make this: ThisForm.RTFOCX.TextRTF = cRTFTEXT
4) and now you have a plain text in the property "Text" of ThisForm.RTFOCX
5) save ThisForm.RTFOCX.Text into the plain ASCII file
Sincerely,
Petr Valach
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement