Forum


Replies: 2   Views: 1881
Row height in 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 Knutsford  · 17-01-2020 - 18:07

In the heading row of my table the second two headers are vertical but teh height isn't large enought to fit the letters in. How do I make the height big enough to fir it in? Thanks. I tried fitText

Posted by admin  · 17-01-2020 - 18:16

Hello,

You can use height and minHeight options available in the rowProperties parameter. You can read about these options on the API page (https://www.phpdocx.com/api-documentation/word-content/add-table-Word-document-with-PHP) and a sample using the first one.

The table should fit contents automatically unless some option or style to force them is used. The trial package doesn't include free support for this kind of task, but after purchasing a license you can send a sample code you are running to contact[at]phpdocx.com and we'll be able to help you to find the source of the problem and a solution.

Regards.

Posted by Knutsford  · 17-01-2020 - 19:38

Ah - I had read that but now it makes sense. Sorry it has now clicked. There is an extra nested array for the Row Poperties