PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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.