I am merging two documents and I want them separated by a page break. The second document has a table for the first item.
I first tried marking the table item for a page break as follows (pb_index is the index of the table item):
SRichViewEdit->RichViewEdit->PageBreaksBeforeItems[pb_index] = true;
This did not work. I then marked the table for a page break as follows:
table_item = (TRVTableItemInfo*) RichViewEdit->RichViewEdit->RVData->GetItem (pb_index);
table_item->PageBreakBefore = true;
This did not work. I then marked the first row in the table for a page break as follow:
table_row = table_item->Rows->Items[0];
table_row->PageBreakBefore = true;
This worked. I could see how the first one might not work (although one would guess that it would). The second one should have worked according to all the examples that I read (ie Split Table example).
My question is this, is this behavior correct? Is it necessary to mark the first row of the table (and not the table) for a page break?
PageBreaks and Tables
-
- Site Admin
- Posts: 17524
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: