Page 1 of 1

Appending to an existing RTF document

Posted: Tue Mar 01, 2011 6:26 pm
by shapoval
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.

Posted: Tue Mar 01, 2011 7:24 pm
by Sergey Tkachenko
It's not only a color table, but a font table, list table, list override table, as well as important default values.
I suggest to generate this large document in one RichView and save this RichView as RTF.