PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #9259

writeBlank not accepting formatting options

Details

Submitted2006-11-07 16:35 UTC
Fromtrichard at techovations dot com
Assignedprogi1984
StatusNo Feedback
PackageSpreadsheet_Excel_Writer
PHP Version5.1.4
OSFedora Core 5
Roadmaps(Not assigned)

Comments

[2006-11-07 16:35 UTC] trichard at techovations dot com

Description:
------------
When using the writeBlank function with a formatting object the cell does not get formatted correctly.

Test script:
---------------
$rowLateCenterFormat =& $xls->addFormat();
$rowLateCenterFormat->setLeft(1);
$rowLateCenterFormat->setRight(1);
$rowLateCenterFormat->setTextWrap();
$rowLateCenterFormat->setAlign('Top');
$rowLateCenterFormat->setAlign('Center');
$rowLateCenterFormat->setFgColor('43');
$sheet->writeBlank(0, 0, $rowLateCenterFormat);

Expected result:
----------------
Would expect the cell the show up with a border on the left & right, text align center, and the fg color set to a yellow.

Actual result:
--------------
Cell is not formatted at all.