howto prevent table splitting

General TRichView support forum. Please post your questions here
Post Reply
cube
Posts: 4
Joined: Thu Dec 12, 2013 8:23 pm

howto prevent table splitting

Post by cube »

How do I prevent table splitting / page break inside a table?

I'm adding a number of small tables in a document and I do not want to habe a pagebreak inside a table. It should be between two tables.

Regards

Rainer Hamann
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

The simplest way is excluding rvtoRowsSplit from table.PrintOptions
(however, this option cannot be saved in RTF and DocX)
cube
Posts: 4
Joined: Thu Dec 12, 2013 8:23 pm

Post by cube »

Now a part of the table is not printed. Is it possible to recognize, if a page break has do be inserted before that table?

Regards

Rainer Hamann
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Insert this table in another table 1x1 without borders.
Assign table.Rows[0].KeepTogether = True for this outer table.

(this method works as you expect in RVPrint, not in ScaleRichView, because ScaleRichView does not support pagebreaks inside cells yet)
Post Reply