PhpSpreadsheet/samples/17_Html.php

12 lines
351 B
PHP
Raw Normal View History

<?php
require __DIR__ . '/Header.php';
$spreadsheet = require __DIR__ . '/templates/sampleSpreadsheet.php';
$filename = $helper->getFilename(__FILE__, 'html');
$writer = \PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'HTML');
$callStartTime = microtime(true);
$writer->save($filename);
$helper->logWrite($writer, $filename, $callStartTime);