Replies: 1   Views: 743
How does the cantsplit property of table rows work?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 18-12-2018 - 16:12


The cantSplit option set 'Allow row to break across pages' as false, so if the row content doesn't fit in a page, the whole row moves to the next page.
If you need to keep rows on the same page, then you need to use keepNext and keepLines options available in paragraph contents and paragraph styles.

You can read more about this MS Word behavior on the following pages:

These samples illustrate how to do it using MS Word, but can set the same options using phpdocx.