Forum


Replies: 4   Views: 3350
"cell_color" option doesn't work for addtable()
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 admin  · 11-04-2013 - 12:12

Hello,

We have checked this error and found a bug that we'll be solved in the next version of phpdocx.
Apply the following path to solve the error in the current version of phpdocx:

Index: CreateTable.inc
===================================================================
--- CreateTable.inc (revisiĆ³n: 158)
+++ CreateTable.inc (copia de trabajo)
@@ -146,10 +146,10 @@
$this->generateTCW($args[1]['size_col']);
}
if ($cont instanceof CreateText) {
- if (!empty($cont->arrEmbeddedText[0]['cell_color'])) {
+ if (!empty($cont->_embeddedText[0]['cell_color'])) {
$this->generateSHD(
'solid',
- $cont->arrEmbeddedText[0]['cell_color']
+ $cont->_embeddedText[0]['cell_color']
);
}
} else {


Regards.