Skip to content

Commit

Permalink
Make newer Excel versions properly recalculate formulas on document open
Browse files Browse the repository at this point in the history
Fixes #456
Closes #515
  • Loading branch information
Toni Martí authored and PowerKiKi committed Jun 10, 2018
1 parent 22d5312 commit b700614
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PhpSpreadsheet/Writer/Xlsx/Workbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ private function writeCalcPr(XMLWriter $objWriter, $recalcRequired = true)
// 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);

This comment has been minimized.

Copy link
@modeverv

modeverv Oct 13, 2020

? I think

$objWriter->writeAttribute('forceFullCalc', ($recalcRequired) ? 1 : 0);

$objWriter->endElement();
}
Expand Down

0 comments on commit b700614

Please sign in to comment.