Appending to an existing RTF document
Posted: Tue Mar 01, 2011 6:26 pm
Hi Sergey,
Could you, please, give me some directions, how to export a TRichView document as a part of an existing RTF document? Let's say we have a program, which generates an RTF document. One or more RVF documents should be inserted into that large RTF document after converting them to the RTF format. The problem I see now is the color table, which should have through numeration.
I believe, we need to define some event, which will be generated each time TRichView adds an entry to the color table. In the handler of this event we can add an entry to the color table of the large RTF document and return the resulting index to the RichView object. However, it's not obvious from the sources, how can we do it.
Could you, please, give me some directions, how to export a TRichView document as a part of an existing RTF document? Let's say we have a program, which generates an RTF document. One or more RVF documents should be inserted into that large RTF document after converting them to the RTF format. The problem I see now is the color table, which should have through numeration.
I believe, we need to define some event, which will be generated each time TRichView adds an entry to the color table. In the handler of this event we can add an entry to the color table of the large RTF document and return the resulting index to the RichView object. However, it's not obvious from the sources, how can we do it.