Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

I am not getting calculated value after entering required cell in Excel sheet

$
0
0

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



Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>