Insert images

Topics: Developer Forum, User Forum
Sep 13, 2012 at 2:03 PM


I'm trying to insert images, one per row always in the same column.

The excel file is created but when opening the excel says this corrupt and if i recover, pressing yes, the file opens and only shows me the first picture.

This my code to insert the images (excel 2007):
$gdImage = imagecreatefromjpeg($this->container->getParameter('product_upload_front_path').$image->getFile());
$objDrawing = new \PHPExcel_Worksheet_MemoryDrawing();

But if i do not use the setCoordinates all the images are inserted, but they are on top of each other in the upper left corner of the sheet.

Can someone help me?!!

Thanks in advance,

Paulo Dias