Open houlongchao opened 1 month ago
You should apply using on SXSSFWorkbook. Then dispose will call Close method. It makes sense.
using(IWorkbook workbook = new SXSSFWorkbook())
{
...
}
I Know, but the close method only close the file, cleaning temp file only seen in the dispose method. You can test it, the temp file cannot currently be cleaned using the IWorkbook dispose.
The floowing code generates 2 temp files and is not automatically cleaned. This change fixes the problem.