Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Appending to RTF Memo
Message
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00939016
Message ID:
00939019
Views:
21
This message has been marked as the solution to the initial question of the thread.
Hi Rob,

You can use RTF control to merge two RTF documents. Something like this
* Load the first document
...
* Append second 
Thisform.oRtf.oBJECT.SelStart = LEN(Thisform.oRtf.oBJECT.Text)
Thisform.oRtf.oBJECT.SelLength = 0
Thisform.oRtf.oBJECT.SelRtf = mytable.mymemo2
...
Check also Functions for RTF-files JOIN File #9971

>I've been fighting with this all day and reading a number of threads here, but I can't find this issue addressed anywhere. If anyone has any ideas I'd greatly appreciate it:
>
>The bottomline:
>
>How do you append text from an RTF control into a memo that already has existing formatted text without losing formatting?
>
>I have a form that has an RTF Ole control that's bound to a memo field of a table. Users can view notes here. A click on a command button takes them to another screen where they can enter notes, then those notes need to get added to the existing notes and control returns to the the initial form.
>
>If I try:
>
>REPLACE MyMemo WITH MyMemo + this.olectrl.textRTF
>
>
>It won't display correctly because the initial control characters for the RTF are in the memo field twice.
>
>If I try:
>
>REPLACE MyMemo WITH MyMemo + this.olectrl.text
>
>
>I of course lose the formatting of this.olectrl.
>
>I've tried a number of different ways to merge the existing RTF code, but I cannot figure it out.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform