Excel数据到TreeView C#

我正在寻找创build一个窗体,其中包含我在Excel中的数据树视图。 我有Windows窗体,我只是想弄清楚如何将Excel数据导出到数据树。 任何链接?

如果导入Microsoft.Office.Interop.Excel程序集,则可以轻松访问Excel文件并使用每个属性和方法。
例:

 using Excel = Microsoft.Office.Interop.Excel; public static object GetCellValue( string filename, string sheet, int row, int column) { Excel.Application excel = new Excel.Application(); Excel.Workbook wb = excel.Open(filename); Excel.Worksheet sh = wb.Sheets[sheet]; object ret = sh.Cells[row, column].Value2; wb.Close(); excel.Quit(); }