A
Abi
Hello there,
I'm using OWC11 interop to extract values from an excel file. First I'm
converting Excel to a XML spreadsheet and then getting the values by ranges.
Here's the code to get the value for a particular cell.
//sp is spreadsheet object
Range rg = sp.get_Range("B2","D14");
string val = rg.get_Item(1,1).Text;
It works fine for normal text values (un-formatted values). But in some
cases, the cell contains really complex formulas. In this particular
situation, when I run the above code, I get a "#REF!". I don't get the
actual value stored in the excel sheet (for e.g.the value in excel cell is
32000). I want to get the value that excel displays, not the formula.
Is there any way to do this. Please help me.
Thanks a lot in advance.
I'm using OWC11 interop to extract values from an excel file. First I'm
converting Excel to a XML spreadsheet and then getting the values by ranges.
Here's the code to get the value for a particular cell.
//sp is spreadsheet object
Range rg = sp.get_Range("B2","D14");
string val = rg.get_Item(1,1).Text;
It works fine for normal text values (un-formatted values). But in some
cases, the cell contains really complex formulas. In this particular
situation, when I run the above code, I get a "#REF!". I don't get the
actual value stored in the excel sheet (for e.g.the value in excel cell is
32000). I want to get the value that excel displays, not the formula.
Is there any way to do this. Please help me.
Thanks a lot in advance.