Page 1 of 1

Adding Tables at the end while building document

Posted: Sun Feb 05, 2006 7:08 pm
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.

Posted: Sun Feb 05, 2006 9:27 pm
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);