Reading data from excel 2010 using Microsoft.Office.Interop.Excel

前端 未结 5 1751
后悔当初
后悔当初 2020-12-17 14:43

I am not able to read data in Excel. Here is the code I am using:

using Excel = Microsoft.Office.Interop.Excel;

Excel         


        
5条回答
  •  一个人的身影
    2020-12-17 15:33

    I found the solution for above, here is the code:

    string temp = (string)(xlRange.Cells[i, j] as Excel.Range).Value2;
    MessageBox.Show(temp);
    

提交回复
热议问题