Forum


Replies: 3   Views: 3680
Addtemplatevariable issue
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 asifejaz  · 09-10-2012 - 10:44

when I use addTemplateVariable to update table with $VARIABLE$. Everything works fine, but table width changed. e.g I add table which alligned left and half of page width. After populating data, table width increased to 100% equal to page width. How do i fix it.

Posted by ephp027  · 11-04-2013 - 12:13

I'm not sure, but it sounds like your table is using Autofit to Contents. That automatically resizes the columns to best fit the contents. Instead, uou want a Fixed column width. One way to do that is specify Preferred Width for Table and Column in table Properties.

Posted by asifejaz  · 11-04-2013 - 12:13

thanx buddy it resolve my problem.