PhpSpreadsheet/samples/20_Read_OOCalc.php

12 lines
289 B
PHP

<?php
require __DIR__ . '/Header.php';
$filename = __DIR__ . '/templates/OOCalcTest.ods';
$callStartTime = microtime(true);
$spreadsheet = \PhpSpreadsheet\IOFactory::load($filename);
$helper->logRead('OOCalc', $filename, $callStartTime);
// Save
$helper->write($spreadsheet, __FILE__);