>>>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only