Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying RTF text on label reports etc
Message
 
 
To
25/05/2006 07:31:57
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01124811
Message ID:
01124815
Views:
10
1. See Text Property of the RTF control
2. Check http://support.microsoft.com/kb/246088/en-us

>
>I have a form which contains an RTF control, allowing RTF text to be stored in a memo field. The formatting will in fact only be a mixture of normal and italic text (for Latin names of biological species). Font size etc will be fixed, as will the number of characters which can be entered.
>
>There are a couple of things I'd like to be able to do:
>
>(1) how to get the length (ie no of chars) of JUST the displayed text (ie without any of the RTF formatting tags) in the form control.
>
>(2) I need to be able to print the RTF text as formatted text on a VFP9 label report.
>
>I have found two online resources relating to this, one on MS, and the other by Bo Durban, in Foxtalk. Bo's solution looks very elegant, but I'm having difficulty getting my head round it to modify the code to do what I want.
>
>My needs are very simple: I want richly formatted text to appear in a small, fixed length box on a label, followed by other report text which will not be in RTF format. The RTF object will thus be of fixed size.
>
>Any advice, or places to see helpful examples gratefully received.
>
>John
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform