Aspose获取excel工作表名字

Workbook book = new Workbook(path);
WorksheetCollection myColection = book.Worksheets;
int k1 = myColection.Count;
string[] name = new string[k1];
for (int i = 0; i < k1; i++)
{
   name[i] = myColection[i].Name;
}

 

posted @ 2021-01-29 17:33  越吃越瘦  阅读(225)  评论(0编辑  收藏  举报