Make newer Excel versions properly recalculate formulas on document open

Fixes #456
Closes #515
This commit is contained in:
Toni Martí 2018-05-28 09:16:39 +02:00 committed by Adrien Crivelli
parent 22d5312be8
commit b700614f0d
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}