Home » File Formats » Spreadsheet_Excel_Writer » Bug #6142
setBold default value don't work
Details
| Submitted | 2005-12-04 10:12 UTC |
|---|---|
| From | php at cabinfo dot fr |
| Status | Bogus |
| Package | Spreadsheet_Excel_Writer |
| PHP Version | 4.3.11 |
| OS | Windows 2003 server |
| Roadmaps | (Not assigned) |
Comments
[2005-12-04 10:12 UTC] php at cabinfo dot fr
Description:
------------
Version 0.9.0 beta
When using the setBold function with default value (ie default value is 1 and mean bold), cells that use the format are not bold. If you specifie 1 as implied value, cells are bold.
Test script:
---------------
// Don't work
$f_eur_red =& $workbook->addFormat();
$f_eur_red ->setBold;
$worksheet->write(2, 0, 'Code', $f_eur_red);
// Work
$f_eur_red2 =& $workbook->addFormat();
$f_eur_red2 ->setBold(1);
$worksheet->write(2, 1, 'Code', $f_eur_red2);
Expected result:
----------------
In both case the word Code should be bold.
Actual result:
--------------
In the first case ($_eur_red format), the word Code is not bold, and in the second ($f_eur_red2 format) the word Code is bold.
[2005-12-04 13:57 UTC] php at cabinfo dot fr
was an error, sorry