Open ghost opened 4 years ago
Create empty the Microsoft xlsx file "tmp.xlsx". Use the code below:
XSSFWorkbook xssWorkbook = null; using (var stream = new FileStream(@"C:\temp\tmp.xlsx", FileMode.Open, FileAccess.Read)) { xssWorkbook = new XSSFWorkbook(stream); } using (var stream = new FileStream(@"C:\temp\tmp2.xlsx", FileMode.Create, FileAccess.Write)) { xssWorkbook.Write(stream); }
Open the "tmp2.xlsx" file - you will see the below error:
-
Create empty the Microsoft xlsx file "tmp.xlsx". Use the code below:
Open the "tmp2.xlsx" file - you will see the below error:
-