Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I have two questions about RichText
Message
From
27/01/2000 12:55:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/01/2000 12:47:53
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00323669
Message ID:
00323673
Views:
20
>I have two questions.
>
>1. Is it possible to store the value of a richtext control in a memo field, and how.
>
>2. How can i print my rich text formatted text in a report
>
>Thanks


Francis,
There is a sample in solution.app (Ole-RTF). Basically :

oRTF.TextRTF = myTable.myMemo && Load
replace myTable.myMemo with oRTF.TextRTF && Save

To be able to print via "report" you should first provide it a Gen field for it :

oRTF.SaveAs(...)
create cursor myCursor (myRTF g)
append general myRTF from < SavedAsFile >

Create your report with a OleBoundControl and set its field to myRTF and size as appropriate.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform