PhpSpreadsheet/samples/Basic/27_Images_Xls.php

14 lines
322 B
PHP
Raw Permalink Normal View History

<?php
use PhpOffice\PhpSpreadsheet\IOFactory;
2017-10-01 08:48:59 +00:00
require __DIR__ . '/../Header.php';
2016-10-06 11:49:41 +00:00
// Read from Xls (.xls) template
2016-10-06 11:39:10 +00:00
$helper->log('Load Xlsx template file');
$reader = IOFactory::createReader('Xls');
2017-10-01 08:48:59 +00:00
$spreadsheet = $reader->load(__DIR__ . '/../templates/27template.xls');
// Save
$helper->write($spreadsheet, __FILE__);