PhpSpreadsheet/samples/27_Images_excel5.php

12 lines
307 B
PHP

<?php
require __DIR__ . '/Header.php';
// Read from Excel5 (.xls) template
$helper->log('Load Xlsx template file');
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader('Excel5');
$spreadsheet = $reader->load(__DIR__ . '/templates/27template.xls');
// Save
$helper->write($spreadsheet, __FILE__);