我正尝试从zip归档文件中读取一个Excel文件:
var excelEntry = archive.Entries.Single(entry => Regex.IsMatch(entry.FullName, @"\.xlsx\z", RegexOptions.IgnoreCase));
using (var excelPackage = new ExcelPackage(excelEntry.Open()))
{
}
然而,我收到了NotSupportedException异常。
(Exception thrown: 'System.NotSupportedException' in System.dll
Additional information: This operation is not supported.)
文件是一个没有任何保护的简单 .xlsx 文件。 有什么想法吗?