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

setMargins(), setHeader() and setFooter() work in excel but not in openoffice.

Details

Submitted2004-11-13 16:10 UTC
Fromnicolas dot martin8 at worldonline dot fr
Assignedxnoguer
StatusClosed
PackageSpreadsheet_Excel_Writer
PHP Version4.3.8
Roadmaps(Not assigned)

Comments

[2004-11-13 16:10 UTC] nicolas dot martin8 at worldonline dot fr

Description:
------------
setMargins(), setHeader() and setFooter() work in excel but not in openoffice.org. After compare the Perl version 0.42 and 0.43 of McNamara, wich seems to fix the similar bug in his bug report, the solution is simple.
In worksheet.php, for the functions _storeHeader(), _storeFooter(), _storeMarginLeft(), _storeMarginRigth(), _storeMarginTop(), _storeMarginBottom(), change the line:
$this->_append($header.$data);
by :
$this->_prepend($header.$data);

It work fine for me now :))

(The functions _storeVcenter() and _storeHcenter() seems to be change to)

[2005-11-12 23:18 UTC] xnoguer at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Thanks, all the methods have been fixed