Bug #4329 [NEW]: setBgColor not working with setNumFormat?
| From: | pear at adub dot com | Date: | Wed, 11 May 2005 20:37:22 +0000 |
| Subject: | Bug #4329 [NEW]: setBgColor not working with setNumFormat? | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6001@lists.php.net to get a copy of this message | ||
From: pear at adub dot com
Operating system: fedora core 3
PHP version: 5.0.4
Package: Documentation
Bug Type: Bug
Bug description: setBgColor not working with setNumFormat?
Description:
------------
setBgColor seems to create a problem for formatting the cell content. See
below.
Reproduce code:
---------------
$total =& $workbook->addFormat();
$total->setNumFormat('#,##0.00 "";-#,##0.00 ""');
$total->setBgColor('Gray'); // take this line out and all OK
$worksheet->writeFormula(31, 1, "=SUM(B27:B31)", $total);
Expected result:
----------------
cell B32 should sum the cells above it, be formatted and have a gray
background.
Actual result:
--------------
It seems OK until values are entered into the cells above at which point
the bg goes black. The cell's content format (Format->Cells) can't be
accessed from Excel when setBgColor is set, regardless of whether
setNumFormat is set.
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=4329&edit=1
--