currently i have the follwing problem with your library:
I manipulate a excel-sheet and save it. When i open the modified file with Excel the formulas are not evaluated.
Even if i click on "Recaluclate Sheet" in Excel its showing zero. But when i click on the cell formula and press enter the forumla gets updated. See screenshot in attachment - it should show Edeka-EH not zero. When i reenter the Formula ("='Promo-Set2'!C$5") it calculates.
I also noticed that when i try to save the file with
- Code: Select all
workbook.Save();
But when i use
- Code: Select all
workbook.SaveToFile("test.xlsx", ExcelVersion.Version2016);
- Code: Select all
System.NotSupportedException: The formula is not supported in this Version
bei Spire.Xls.Core.Spreadsheet.FormulaUtil.3(Ptg[] A_0)
bei spr1987.0(XmlWriter A_0, spr2354 A_1, XlsCellRecordCollection A_2)
bei spr1987.0(XmlWriter A_0, BiffRecordRaw A_1, RowStorageEnumerator A_2, XlsCellRecordCollection A_3, Dictionary`2 A_4, String A_5)
bei spr1987.0(XmlWriter A_0, spr2403 A_1, XlsCellRecordCollection A_2, Dictionary`2 A_3, String A_4)
bei spr1987.0(XmlWriter A_0, spr2403 A_1, XlsCellRecordCollection A_2, Int32 A_3, Dictionary`2 A_4, String A_5, Boolean A_6)
bei spr1987.0(XmlWriter A_0, XlsCellRecordCollection A_1, Dictionary`2 A_2, String A_3, Dictionary`2 A_4, Boolean A_5)
bei spr1987.0(XmlWriter A_0, XlsWorksheet A_1, Stream A_2, Stream A_3, Dictionary`2 A_4)
bei spr645.0(XlsWorksheet A_0, Dictionary`2 A_1)
bei spr645.0(XlsWorksheet A_0, Dictionary`2 A_1, Dictionary`2 A_2)
bei spr339.0(XlsWorksheet A_0, String A_1, Dictionary`2 A_2, Dictionary`2 A_3)
bei spr339.0(XlsWorksheetBase A_0, String A_1, RelationsCollection A_2, String A_3, Dictionary`2 A_4, Dictionary`2 A_5)
bei spr339.0(RelationsCollection A_0, String A_1, Dictionary`2 A_2, Dictionary`2 A_3)
bei spr339.0(Dictionary`2 A_0, Dictionary`2 A_1)
bei spr339.1(ExcelSaveType A_0)
bei spr339.2(ExcelSaveType A_0)
bei spr339.0(Stream A_0, ExcelSaveType A_1)
bei spr339.0(String A_0, ExcelSaveType A_1)
bei Spire.Xls.Core.Spreadsheet.XlsWorkbook.SaveAs(String fileName, ExcelSaveType saveType, ExcelVersion version)
...
unfortunately i can not provide code or the exel sheet. It contains sensitive data from a customer.
Is there a way to investigate which formula is not supported? Iam using Excel 2016.
Maybe thats the problem why the save() method does not evaluate the formulas? Because it has a problem with a formula?
I also noticed if i use
- Code: Select all
workbook.CalculateAllValue()
Best regards
Oliver Haase