Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rtf
Message
From
29/10/1999 14:40:07
 
 
To
29/10/1999 13:36:34
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Re: Rtf
Miscellaneous
Thread ID:
00283941
Message ID:
00284020
Views:
21
>How i print ( in a Report ) a memo file make in a Rich TextBox Control.
>I can make it with Word, but this required install word in every machine ??
>Any Ideas ??,
>Thanks.
>Regards, Emiliano

In the report you could put in a function that passes in the
memo field with the rtf code in it.

The function would look likt this

FUNCTION RTFTEXT
LPAMETER pc_rtf
LOCAL lo_Rtf, lc_text
lo_rtf = CREATEOBJECT("richtext.richtextctrl")
lo_rtf.TextRtf = pc_rtf
lc_text = lo_rtf.Text
RELEASE lo_rtf
RETURN lc_text

You would not get the formating of the text like bold or underlined but you
would get the text
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Reply
Map
View

Click here to load this message in the networking platform