range = worksheet.get_Range(excel.Cells[2, 1], excel.Cells[rowNumber + 1, columnNumber]);
换成
range = worksheet.Range[excel.Cells[2, 1], excel.Cells[rowNumber + 1, columnNumber]];
get_Range换成Range,括号换成[]
原文地址:https://www.cnblogs.com/z-hj/p/12092562.html
时间: 2024-10-10 05:54:08