For many days I’ve tried to read entire xlsm file (4MB) with phpexcel but no success.
My file have images and macros.
I could read the file but the new file have no images and no macros.
With this code, he shows me the same error (“Out of memory tried to allocate…”) when i use this code:
$inputFileName = "teste1.xlsm"; $inputFileType = PHPExcel_IOFactory::identify($inputFileName); $objReader = PHPExcel_IOFactory::createReader($inputFileType); $objReader->setLoadAllSheets(); $objPHPExcel = $objReader->load($inputFileName); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); $objWriter->save('testing1.xlsm');
My php.ini from my server have:
Anyone have tried to read this file or I need to read this file in other language?