Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: Tim MeagherHey,
What version of the software are you using and what type of Excel template file (XLS, XLSX) are you using?
There have been some issues raised about this in the past, however I believe a fix to at least most of these formatting problems should be available in LAE 4.6.2.
The fix will also be available in LAE 5.0.1 and LAE 5.1.0 when they are released (issue # 4722).
Part of the fix involves the introduction of the PreserveCellStyles parameter which allows you to preserve the styling information in the spreadsheet while still formatting the output data (i.e. date output with date formatting, integer with integer formatting etc).
If you are using LAE 4.6.2, then try setting the PreserveCellStyles parameter to true.
I am not sure about why the formulas wouldn't be getting recalculated...whenever the Excel file is written, and there is a template in use, or another file being appended to, a flag is set to force the recalculation of all formulas on loading the workbook.
However, it does appear that this is a sheet-based setting only.
When using an XLSX file it looks like for me at least this always works.
However, when using an XLS file rather than XLSX, it looks like if the formulas are on a sheet which was not modified by the node, the flag is not set on that sheet, and the formulas will need to be manually recalculated.
Can you confirm whether or not this is the problem you are seeing?
Regards,
Tim.