I tried with below methods, But did not work
1)
spreadSheet.WorkbookPart.Workbook.CalculationProperties.ForceFullCalculation = true;
spreadSheet.WorkbookPart.Workbook.CalculationProperties.FullCalculationOnLoad = true;
2)
worksheetPart.Worksheet.Reload();
3)
public static void FlushCachedValues(SpreadsheetDocument doc){
doc.WorkbookPart.WorksheetParts
.SelectMany(part => part.Worksheet.Elements<SheetData>())
.SelectMany(data => data.Elements<Row>())
.SelectMany(row => row.Elements<Cell>())
.Where(cell => cell.CellFormula != null && cell.CellValue != null)
.ToList()
.ForEach(cell => cell.CellValue.Remove());
}
did not work :(
Please help me on this. Thanks in Advance.
-- Regards, Kiran.D.N Web Developer Kreativepool, Mysore. kirandn at live.com