//选择并打开excel表
Excel.Application objApp = new Excel.Application();
Excel.Workbook objWorkbook = default(Excel.Workbook);
Excel.Worksheet objWorksheet = default(Excel.Worksheet);
objApp.Visible = true;
objWorkbook = objApp.Workbooks.Open(".......xls");
objWorksheet = objWorkbook.Worksheets("sheet1");
|