error on clone sheet to duplicate pictures

Topics: Developer Forum, Project Management Forum
Dec 22, 2010 at 7:16 PM
Edited Dec 22, 2010 at 7:18 PM

I have one question...

I did this example that MarkBaker provide....

$newSheet = cone $objPHPExcel->getSheeByName("sheet_template");

$newSheet->setTittle('New Sheet');

$newSheetIndex = 1;

$objPHPExcel->addSheet($newSheet, $newSheetIndex);

but it fails on copying one picture that i have in the template one, it doesnt copy the picture, it shows an RED X.... like it doesnt find the picture...

i also get this error with that

warning: fclose(): supplied argument is not a valid stream resource in $myroot/lib/Classes/PHPExcel/CachedObjectStorage/PHPTemp.php on line 152.


any idea?

Dec 28, 2010 at 6:43 PM

i dont know if this is the same... but this bug was reported as fixed but i dont understand how..

- Bugfix:   (ET) Work item  9937 - Images not getting copyied with the ->copy() function