From b700614f0d7a570062c164a4809fdbfe1fdaf11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20Mart=C3=AD?= <-> Date: Mon, 28 May 2018 09:16:39 +0200 Subject: [PATCH] Make newer Excel versions properly recalculate formulas on document open Fixes #456 Closes #515 --- src/PhpSpreadsheet/Writer/Xlsx/Workbook.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PhpSpreadsheet/Writer/Xlsx/Workbook.php b/src/PhpSpreadsheet/Writer/Xlsx/Workbook.php index e9de179e..cede7edb 100644 --- a/src/PhpSpreadsheet/Writer/Xlsx/Workbook.php +++ b/src/PhpSpreadsheet/Writer/Xlsx/Workbook.php @@ -175,6 +175,7 @@ class Workbook extends WriterPart // fullCalcOnLoad isn't needed if we've recalculating for the save $objWriter->writeAttribute('calcCompleted', ($recalcRequired) ? 1 : 0); $objWriter->writeAttribute('fullCalcOnLoad', ($recalcRequired) ? 0 : 1); + $objWriter->writeAttribute('forceFullCalc', ($recalcRequired) ? 0 : 1); $objWriter->endElement(); }