Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying RTF text on label reports etc
Message
From
25/05/2006 07:31:57
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Displaying RTF text on label reports etc
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01124811
Message ID:
01124811
Views:
59
Hello,

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
Dr. JW Faithfull
Curator in Geology
Hunterian Museum
University of Glasgow
Glasgow G12 8QQ
Scotland
Next
Reply
Map
View

Click here to load this message in the networking platform