Description: XLS and XLSX files have mechanisms for marking that a file is dirty and should be recalculated. LibreOffice is not honoring these flags. Steps to Reproduce: 1. Open attached file Actual Results: Cells C2:C5 are not recalculated Expected Results: C2:C5 are recalculated (verified in Excel 2019) Reproducible: Always User Profile Reset: Yes Additional Info: For XLSX, the workbook calcPr tag has a fullCalcOnLoad attribute. For XLS, the ForceFullCalculation record 0x08A3 should be parsed.
Created attachment 175385 [details] demonstration
Take a look to the option: Menu/Tools/Options/LibreOffice calc/Calculate/Recalculation on File Load
In Excel, the "Automatic" calculation setting will recalculate workbooks unless the file sets a flag (in XLSX, fullCalcOnLoad="0"). "Automatic" does not have an equivalent in LibreOffice: "Always recalculate" will recalculate files that are explicitly set not to recalculate on file load, "Never recalculate" will not recalculate files that are explicitly set to recalculate, and "Prompt user" will prompt without giving an indication of the file hint.
Calc is a good tool to convert Excel files to PDF programmatically. In combination with previously filled/updated sheets, it would be good to have the automatic recalculation.
See also https://ask.libreoffice.org/t/libreoffice-calc-not-computing-functions-showing-function-not-output/17418/42 and following https://ask.libreoffice.org/t/libreoffice-calc-not-computing-functions-showing-function-not-output/17418/43