using NPOI.SS.UserModel;
string path = @"C:\temp\a.xlsx";
string out_path = @"C:\temp\exemple_out.xlsx";
using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read))
{
var workbook = WorkbookFactory.Create(fileStream);
var outputMs = new MemoryStream();
workbook.Write(outputMs, false);
var result = outputMs.ToArray();
File.WriteAllBytes(out_path, result);
}
Issue Description
When I migrated NPOI from 2.6.2 to 2.7.0, I have now this error : "We found a problem with some content in 'filename'. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes.
NPOI Version
2.7.0 (cannot reproduce this error in 2.6.2)
File Type
Upload the Excel File
a.xlsx
Reproduce Steps
Issue Description
When I migrated NPOI from 2.6.2 to 2.7.0, I have now this error : "We found a problem with some content in 'filename'. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes.