ExcelDriver xl = new ExcelDriver(); xl.OpenWorkbook("C:\ExcelWorkbooks\MyWorkbook.xlsm"); Object[,] obj = (Object[,])xl.GetCellValue("A2:B4");
for(int i = 1; i <= obj.GetLength(0); i++)
{
for(int j = 1; j <= obj.GetLength(1); j++)
{
Console.WriteLine(obj[i,j].ToString());
}
文件路径错误,显示非法字符。