General information
Category:
ActiveX controls in VFP
There's certain header information in the RTF file that established what fonts and colors that you are using in your file. That said, what I did was to place the contents of the file into a character variable and assigned that to the RTF control's TextRtf property. Ie. ThisForm.oleRtfControl.Object.TextRtf = lcRtfStr.
For Font control Bold, Underline, Italics, you use the \b \u \i identifiers before the word/words that you want to change the attributs of. Then when you want that attribute turned off, you use \b0 \i0
Here's some sample code from my app that might help.
lcRtfStr = lcRtfStr + "\b\ul\i " + ALLTRIM(STR(c_results.counter)) + ". " + lcTitle + " " + lcDate + " " + lcRecType + "\b0\i0\par"
HTH
-Matt
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