PageBreaks and Tables

General TRichView support forum. Please post your questions here
Post Reply
rgsolutions
Posts: 86
Joined: Mon Jun 08, 2009 11:25 pm

PageBreaks and Tables

Post by rgsolutions »

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

Post by Sergey Tkachenko »

PageBreaksBeforeItems must work for tables. It looks like this is a bug in ScaleRichView. We will fix it in the next update.
Post Reply