insertBitmap()

From: Date: Tue, 10 Aug 2010 11:16:59 +0000
Subject: insertBitmap()
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-30690@lists.php.net to get a copy of this message
Hi, I need assistance with inserting Bitmap images onto a dynamically generated ..xls document using PEAR-Spreadsheet_Excel_Writer. My problem is every time I create a .xls document with a image embedded I get the error -> "Excel found unreadable content in filename", I followed the instructions here " http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.spreadsheet-excel-writer-worksheet.insertbitmap.php" but the problem still persists. I am using Excel 2007 and the document is generated from my Gentoo Linux server. I am able to do anything else with the spreadsheet but I cannot add images. My Code <----- $worksheet->setRow(0,70); $worksheet->setRow(1,70); $worksheet->setColumn(0,0,50); $worksheet->setColumn(1,1,50); //$worksheet->write(0,0,'FUCK OFF'); //$worksheet->insertBitmap(0,0,'test.bmp') $file = 'img/test.bmp'; $worksheet->insertBitmap(0,0,"img/test.bmp",0,0,1,1); $workbook->close(); ----> Please any ideas will be great. Regards, JohnnyFastFinger

« previous php.pear.general (#30690) next »