Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert RTF files to TXT format
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00563075
Message ID:
00563799
Views:
12
Hi
Check if you have RichText ActiveX installed. You should have it on tools-option-controls ActiveX control list ("Microsoft Rich TextBox Control").
Add this control to VFP ActiveX controls., next try to put it on a form by choosing it from form controls toolbar. Run the form. If it works, you have luck and after replacing VFP6 FILETOSTR and STRTOFILE by another functions you have to got success. If not reinstall VFP5.


>>You can use RichText ActiveX control that comes with VFP
>>
>>loRTF = CREATEOBJECT("RICHTEXT.RichTextCtrl.1")
>>loRTF.TextRTF = FILETOSTR( GETFILE("RTF") )
>>STRTOFILE( loRTF.Text, "test.txt")
>>MODIFY FILE test.txt
>>
>>
>>
>>>Does anyone know of a third-party product that will convert RTF files to TXT format? We really need a program that will run on its own (a batch program) to convert mass quantities of files on a daily basis.
>>>
>>>TIA!
>
>
>Ok, I've been trying to figure out the code but i keep getting an error code of 0x800a0183 unknown OLE error code. I've done some research and i think it has something to do with not having permission to change control? can someone help me out a little? i'm using VFP5.0 please keep in mind
>
>TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform