Bug #3185 [Opn->Fbk]: Bug in setBgColor() Example
| From: | danielc at analysisandsolutions dot com | Date: | Thu, 13 Jan 2005 18:53:11 +0000 |
| Subject: | Bug #3185 [Opn->Fbk]: Bug in setBgColor() Example | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-5421@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=3185&edit=1
ID: 3185
Updated by: danielc@analysisandsolutions.com
Reported By: tim at gerundt dot de
-Status: Open
+Status: Feedback
Type: Bug
Package: Documentation
PHP Version: Irrelevant
New Comment:
How about some context, please. Exactly which file did you edit? A
hyperlink to the page would be helpful, for example.
Previous Comments:
------------------------------------------------------------------------
[2005-01-13 08:34:43] tim at gerundt dot de
Description:
------------
The example from setBgColor() want to show the backgroundcolor in three
rows.
But the source code write all to row 1.
Reproduce code:
---------------
--- C:\Temp\example.php.org Thu Jan 13 14:22:05 2005
+++ C:\Temp\example.php Thu Jan 13 14:22:58 2005
@@ -20,14 +20,14 @@
$another_format2 =& $workbook->addFormat();
$another_format2->setFgColor('red');
$another_format2->setPattern($i);
- $worksheet->write(1, $i, "another pattern", $another_format2);
+ $worksheet->write(2, $i, "another pattern", $another_format2);
// mixed red and green according to pattern
$another_format3 =& $workbook->addFormat();
$another_format3->setBgColor('green');
$another_format3->setFgColor('red');
$another_format3->setPattern($i);
- $worksheet->write(1, $i, "another pattern", $another_format3);
+ $worksheet->write(3, $i, "another pattern", $another_format3);
}
$workbook->close();
?>
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=3185&edit=1