Forum


Replies: 1   Views: 3401
Table size_col
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 Merlin1  · 07-06-2012 - 11:05

Hello again,

When i use an array to set each column to a specific size, is not working, all the columns take the value of the last element of the array. Beside that there are some errors of uninitialize offset and that's because in CreateTable.inc, $intCol is defined outside the foreach as i show below:

[code]
$this->generateTBLLOOK($args[1]['TBLLOOKval']);
$this->generateTBLOVERLAP();
$intLine = 0;
//$intCol = 0; where is now

foreach ($args[0] as $datDepth) {
$intCol = 0; // where it whould be
$this->generateTR();
$this->generateTRPR();
[/code]

Maybe there is a better solution but this worked for me.

Thanks,
Adi