Forum


Replies: 5   Views: 1563
Delete blank rows under the table
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  · 21-10-2020 - 05:21

Hello,

That's a MS Word limitation. MS Word requires adding at least one paragraph between tables. If you open MS Word you can try it: after adding a table to a document and then you try to add another table, MS Word doesn't allow it unless you add at least a paragraph.

You can get the minimum space between tables adding a paragraph between them and setting the spacing and font-size to the minimum value:

https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_win10-mso_2013_release/remove-space-after-table/1f651f2d-e630-4d53-ab1e-a3a7418faf21?auth=1

http://www.wordbanter.com/showthread.php?t=123470

You can change spacing and font-size values with phpdocx.

Using removeWordContent from DOCXPath you can force removing that paragraphs between tables that MS Word requires, but please note that then MS Word may display a corrupted document error when trying to open it.

Regards.