Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Import To GRID with formula in cell
posted

HI,

 

I am trying to Import from excel into grid.If a cell has formula and if i read the cell value I am getting the formula not the cell value.

 foreach (WorksheetCell cell in w.Rows[iRow].Cells)

{

if (cell.Value != null && cell.Value.ToString().Length > 0)

{

cell.Value-------Returns the formula but not the value of the cell.

}

Parents
  • 44743
    posted

    Starting with the next release (8.3), formula solving has been implemented in the Excel assembly. In that version and later, getting the Value property of the cell will return the calculated value.

Reply Children
No Data