Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RTF Text
Message
From
04/05/2014 17:11:21
 
 
To
04/05/2014 15:37:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01599526
Message ID:
01599527
Views:
71
>Hi All,
>
>I have an edit control that I want to add text to. Is it possible to create RTF text i.e. create a string with some bolded text or some different colours, etc? Is this done through control markers or something? If so, can it be done programmatically?

I believe RTF files/strings can be created programmatically but it's non-trivial.

Maybe you could automate Word, and save it as RTF using ExportAsFixedFormat(), then FileToStr() the file and put it in your control.

All this assumes that your VFP edit control can handle RTF i.e. not a native text or edit box (?)
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform