Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying RTF text on label reports etc
Message
De
25/05/2006 08:01:47
 
 
À
25/05/2006 07:31:57
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01124811
Message ID:
01124818
Vues:
5
>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

John,

(1) the text without formatting
TextContent = thisform.RtfControl.Text
TextContentLen = len(m.TextContent)
(2) Cannot help you there. But if it's only a line or so, maybe yiu can create a cursor with a general field http://support.microsoft.com/?id=246088
(there may be other ways)
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform