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 #5887

Usage of setVersion Function results in Error

Details

Submitted2005-11-07 14:45 UTC
Fromsgaurav at rediffmail dot com
StatusNo Feedback
PackageSpreadsheet_Excel_Writer
PHP Version4.3.1
OSLINUX
Roadmaps(Not assigned)

Comments

[2005-11-07 14:45 UTC] sgaurav at rediffmail dot com

Description:
------------
Following Message appears when I am trying to use setVersion(8) function in the code. I have used this function, so that i am able to write more than 255 chrs in the cell. But it resuts in an errro. Without using this function code behaves perfectly and gives the output. But the cell limits to 255 chars only.

-----Error----
<b>Warning</b>: Wrong parameter count for array_push() in <b>/var/www/html/hview/extra/Spreadsheet/Excel/Writer/Workbook.php</b> on line <b>1462</b><br />

Test script:
---------------
$workbook = new Spreadsheet_Excel_Writer();
$worksheet = &$workbook->addworksheet('Verification_Cancel_Report');
$workbook->setVersion(8);
$workbook->setCustomColor(10, 192,160,98); //Golden Brown
$goldenBrownbg =& $workbook->addFormat();
$goldenBrownbg->setAlign('center');
$goldenBrownbg->setBorder(1);
$goldenBrownbg->setBold();
$goldenBrownbg->setFgColor(10);
.......

Expected result:
----------------
It will suppose to allow to write more than 255 chars in a cell.

[2005-11-07 22:00 UTC] xnoguer at php dot net

what version of Spreadsheet_Excel_Writer are you using?