Forum


Replies: 5   Views: 4389
Table width in templates
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 medscope  · 26-10-2012 - 02:33

I'm using replaceTemplateVariableByHTML() to create dynamic HTML table into template.

I need to make the table width fit to the document. But it is fit to the content and the with attribute of the table doesn't affect the table width in the document.

How can I set the table width, so it will be reflected in the document or auto fit to the document.

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

Or I can't modify the with of the column

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

[quote][b]Quote from medscope on October 26, 2012, 03:08[/b]
Or I can't modify the with of the column[/quote]

find some solution

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

Have you solved this?

Looking for the same..it seems to me is quite a key requirement!

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

solved this problem with the latest version of PHPDOCX.

and in the code just use <table width='100%'> this will fit the table to the document.