Picture in excel looks not clear!

Aug 4, 2009 at 2:06 AM
Edited Aug 5, 2009 at 1:16 AM

I use the code below to insert a picture into excel by phpexcel. But the result image in excel file looks not very clear compared to the original picture.I wonder whether there exists some function which can set 'resolution' or something!

thanks in advance!

$objDrawing = new PHPExcel_Worksheet_Drawing();
$objDrawing->setName('Paid');
$objDrawing->setDescription('Paid');
$objDrawing->setPath('../swfobject/data/abc.jpg');
$objDrawing->setCoordinates('H1');
$objDrawing->setWorksheet($objPHPExcel->getActiveSheet());

 

 

Developer
Aug 6, 2009 at 6:41 AM

Can you say whether this is happening with Excel2007 or Excel5 writer? Would it be possible to post some screen shots showing the problem?