Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combining text from two RICH text textboxes
Message
From
08/09/2000 21:50:08
 
 
To
07/07/2000 05:00:05
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00389346
Message ID:
00414528
Views:
28
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform