sagacity/inc/vendor/phpoffice/phpspreadsheet/samples/Basic/14_Xls.php

14 lines
380 B
PHP
Raw Normal View History

2018-05-07 10:51:08 -04:00
<?php
use PhpOffice\PhpSpreadsheet\IOFactory;
require __DIR__ . '/../Header.php';
$spreadsheet = require __DIR__ . '/../templates/sampleSpreadsheet.php';
$filename = $helper->getFilename(__FILE__, 'xls');
$writer = IOFactory::createWriter($spreadsheet, 'Xls');
$callStartTime = microtime(true);
$writer->save($filename);
$helper->logWrite($writer, $filename, $callStartTime);