RE: [PEAR] Excel and insertBitmap
| From: | Xavier Noguer | Date: | Wed, 14 Apr 2004 23:33:39 +0000 |
| Subject: | RE: [PEAR] Excel and insertBitmap | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-11849@lists.php.net to get a copy of this message | ||
I'v just submitted a fix for bug 781 (which I think is the same as this one)
to cvs. Could you please test it?
Xavier
PS: I'm not subscribed to the list
-------------------------------------------------
Hi!
I want to insert a bitmap into Excel and set the height of the row. But when
I do that the image is not in shape any more. Is there a way to resize the
row without any effect on the bitmap?
An example:
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer();
$workbook->send('test.xls');
$worksheet =& $workbook->addWorksheet('Teilnehmerliste');
$worksheet->insertBitmap(0,0,'images/abitmap.bmp');
$worksheet->setRow(0,48);
$workbook->close();
The existance of the line "$worksheet->setRow(0,48);" makes the image look
higher or normal. The problem is, that the image is always a bit higher than
the cells ...
I will hand this in as an error-report ... But - is there a workaround?
regards
Daniel