Forum


Replies: 4   Views: 6111
How to add a table with repeating headers
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 ojomasta  · 15-01-2014 - 17:33

Hi,



im trying to add a HTML table with repeating headers on multipe pages, but it does not work.

i've try with addTable, embedHTML,addHTML



Gautier



 


Posted by jorgelj  · 16-01-2014 - 09:57

Hello,



Using the addTable method you can do that.



This is the phpdoc:



* @param array $rowProperties (array) a cero based array. Each entry is an array with keys and values:

     *      'cantSplit' (boolean)

     *      'minHeight' (int) in twentieths of a point

     *      'height' (int) in twentieths of a point

     *      'tblHeader' (boolean) if true this row repeats at the beguinning of each new page



You need to use tblHeader method.



Regards.


Posted by metalbird  · 03-03-2014 - 02:02

Hello,



I am using templates in a docx File for generating tables.



Is there also any option for the templates to repeat the table header on every page like the tblHeader parameter of the addTable method ?



Regards.


Posted by jorgelj  · 03-03-2014 - 09:16

Hello,



If you're using a template you need to set the table to repeat the header with Word.



Regards.