Adding Tables at the end while building document

General TRichView support forum. Please post your questions here
Post Reply
SKinneyx1
Posts: 4
Joined: Sun Feb 05, 2006 6:52 pm

Adding Tables at the end while building document

Post by SKinneyx1 »

I'm writting an application that pulls in a genealogy (GedCom) file and organizes the individuals into a TreeView. Once that is done, it starts adding the individuals to a RichView. For each individual I add the name, dates spouses and children.

For the children I want to add them in a table as I'm building the document. Is there a way to do this without having to first format the document, move to the end, and then insert the table?

Thanks.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

For document generation, use Add*** methods, and then call Format.
For tables, use AddItem method:

Code: Select all

...
table.ParaNo := <index of paragraph style>;
rv.AddItem('', table);
Post Reply