log('Load Xlsx template file'); $reader = IOFactory::createReader('Xls'); $spreadsheet = $reader->load(__DIR__ . '/templates/27template.xls'); // Save $helper->write($spreadsheet, __FILE__);