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

Problems with the method setTextRotation()

Details

Submitted2006-09-14 15:26 UTC
Frommjansen at databay dot de
Assignedprogi1984
StatusClosed
PackageSpreadsheet_Excel_Writer
PHP Version4.3.1
OSLinux/SuSE
Roadmaps(Not assigned)

Comments

[2006-09-14 15:26 UTC] mjansen at databay dot de

Description:
------------
If I use the method setVersion(8) to merge some cells with the experimental method mergeCells(), the text rotating in these merged cells does not work anymore.

Test script:
---------------
require_once("Spreadsheet/Excel/Writer.php");
$this->workbook = new Spreadsheet_Excel_Writer();
$this->workbook->setVersion(8);
$this->worksheet =& $this->workbook->addWorksheet('xyz');
$this->format =& $this->workbook->addFormat(array('TextRotation'=>270, 'Align' => 'center', 'Top' => 1, 'Right' => 1, 'Bottom' => 1, 'Left' => 1));
$this->worksheet->write(0, 0, "abc123", $this->format);
$this->worksheet->mergeCells(0,0,10,10);
$this->workbook->close();

Expected result:
----------------
I expect, that the text appears in the horizontal center of the merged cells, with a border (left, right, bottom and top), rotated 270 degree.