Bug #3185 [NEW]: Bug in setBgColor() Example

From: Date: Thu, 13 Jan 2005 13:34:43 +0000
Subject: Bug #3185 [NEW]: Bug in setBgColor() Example
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5416@lists.php.net to get a copy of this message
From: tim at gerundt dot de Operating system: PHP version: Irrelevant Package: Documentation Bug Type: Bug Bug description: Bug in setBgColor() Example 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 bug report at http://pear.php.net/bugs/bug.php?id=3185&edit=1 --

« previous php.pear.doc (#5416) next »