Replies: 2   Views: 1626
Trouble setting a table's column widths
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 meyerandassoc  · 08-02-2017 - 20:22

I'm trying to create a table but no matter that I set the column witdths to the table is the full width of the page. 

Here are the table properties I'm using:

$tableProperties = array(

I've also tried it without the 'tableLayout' property as well as varying values for 'ColumnWidths'. 

I need both columns to be equal widths, and the table to be approximately 2.5 inches wide. I'd settle for using the 'width' property of tableData but I can't find any code examples.