Hi,
Im using the XML SDK to update some cells in the excel file.
This is the code that im uses to update the cell for a given text (and its working fine).
WorksheetPart worksheetPart = GetWorksheetPartByName(spreadSheet, sheetname); spreadSheet.WorkbookPart.Workbook.CalculationProperties.ForceFullCalculation = true; spreadSheet.WorkbookPart.Workbook.CalculationProperties.FullCalculationOnLoad = true; if (worksheetPart != null) { Cell cell = GetCell(worksheetPart.Worksheet, columnName, rowIndex); cell.CellValue = new CellValue(text); cell.DataType = new EnumValue<CellValues>(CellValues.Number);
On the other hand, now I want to open the excel file again and get updated values ββfrom other cells whose formulas are based on the previous cell, but even with the following lines im not able to do this:
spreadSheet.WorkbookPart.Workbook.CalculationProperties.ForceFullCalculation = true; spreadSheet.WorkbookPart.Workbook.CalculationProperties.FullCalculationOnLoad = true;
Do you know why I am not getting updated values?
thanks
Sincerely.
Jose
source share