Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Commented Unassigned: xlsx文件删除sheet后存储文件,然后使用鼠标打开文件时报错 [13136]

$
0
0
运行代码:
class Program
{
static void Main(string[] args)
{
FileStream file = new FileStream("test.xlsx", FileMode.Open);//读入excel模板

IWorkbook workbook = new XSSFWorkbook(file);
workbook.RemoveSheetAt(0);

file = new FileStream("test1.xlsx", FileMode.Create);//写入excel
workbook.Write(file);

file.Close();
}
}
执行完成后,使用鼠标打开test1.xlsx文件,报丢失信息错误
Comments: ** Comment from web user: skyv158 **

tonyqus wrote Today at 2:31 PM

什么版本的NPOI?2.0.6?
回复:
2.0.6和2.1.1这两个版本都存在这个问题,代码我已贴出,文件和错误图片已附件上传。


Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>