Appending to an existing RTF document

General TRichView support forum. Please post your questions here
Post Reply
shapoval
Posts: 9
Joined: Tue Mar 01, 2011 5:41 pm

Appending to an existing RTF document

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17571
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply