/// <summary> /// 切换标签页 /// </summary> public void ChangeSheet(string sheetName) { SheetName = sheetName; xls.ActiveSheetByName = SheetName; CellValueCollection = xls.AsEnumerable(); }