Information générale
Catégorie:
Contrôles ActiveX en VFP
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement