General information
Category:
ActiveX controls in 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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only