Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combining text from two RICH text textboxes
Message
De
08/09/2000 21:50:08
 
 
À
07/07/2000 05:00:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00389346
Message ID:
00414528
Vues:
27
In concatenating 2 rtf text files I found that the junction contained the termination of the first, plus CRLF + the start of the second. I just invoked the following to surgically remove it:

*- We've concatenated separate rtf strings.
*- Need to remove middle brackets to define the
*- entire document text as a single rtf string.
lcReplaceString = "}"+chr(13)+chr(10)+"{\rtf1"
lcDocumentString = StrTran( lcDocumentString, lcReplaceString, "" )

This leaves just the starting marker at the head of the entire string and the ending marker at the end. Works like a charm.

Now, can you return the favor? How do I print rich text to the printer in VFP? I'm trying to use the rtf.SelPrint method, but I can't get it to work.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform