Bug #8175 [NEW]: Error in reference with the Excel ColorIndex colors

From: Date: Mon, 10 Jul 2006 18:40:52 +0000
Subject: Bug #8175 [NEW]: Error in reference with the Excel ColorIndex colors
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8137@lists.php.net to get a copy of this message
From: guillaume at cybercat dot ca Operating system: N/A Package version: PHP version: 5.1.4 Package: Documentation Bug Type: Bug Bug description: Error in reference with the Excel ColorIndex colors Description: ------------ In the "Format::setFgColor" section of the documentation, there's a link pointing to: http://www.mvps.org/dmcritchie/excel/colors.htm The text following that link reads: "Beware that the color indexes listed there are displaced by 1 with respect to those used by Spreadsheet_Excel_Writer." I believe the color indexes are displaced by 7 (not by 1 as stated in the documentation). Test script: --------------- $foo =& $workbook->addformat(); $foo->setFgColor(22); $worksheet->writeString(1, 1, 'FOOBAR', $foo); Expected result: ---------------- I expect the background to be violet (color #21). Actual result: -------------- The background is Gray 25% (color #15). -- Edit bug report at http://pear.php.net/bugs/bug.php?id=8175&edit=1 --

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