Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Italics etc in memos
Message
From
13/12/2001 15:35:01
 
 
To
13/12/2001 06:19:34
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00593171
Message ID:
00594048
Views:
34
I use to do the following for reports when I need the normal text:
loText = CREATEOBJECT("RichText.RichTextCtrl.1")
SELECT InfoMemo FROM MyTable INTO CURSOR MyCursor READWRITE &7 works only in VFP 7!
SCAN
loText.TextRTF = MyCursor.InfoMemo
REPLACE MyCursor.InfoMemo WITH loText.Text
ENDSCAN
REPORT FORM MyReport TO PRINTER PROMPT PREVIEW NOCONSOLE
RELEASE loText
USE IN MyCursor

>Denis,
>
>If you're using Microsoft's RTF control, then you could try the following:
>
>*-- get only the text without all the formating codes
>lcText = ThisForm.oleRtfControl.text
>
>
>HTH
>>Hilmar, thanks a lot. I have it working. I wonder if there a function to convert the RTF text in the memos to standard text - as needed in some basic reports. And if the memos are transfered to Word, is it poss. to translate the memo text from RTF to normal word stuff. Many thanks.
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform