20_Read_Ods.php 317 B

12345678910111213
  1. <?php
  2. use PhpOffice\PhpSpreadsheet\IOFactory;
  3. require __DIR__ . '/../Header.php';
  4. $filename = __DIR__ . '/../templates/OOCalcTest.ods';
  5. $callStartTime = microtime(true);
  6. $spreadsheet = IOFactory::load($filename);
  7. $helper->logRead('Ods', $filename, $callStartTime);
  8. // Save
  9. $helper->write($spreadsheet, __FILE__);