var workbook = CreateWorkBook(grid, settings);
if (workbook != null)
{
var provider = new XlsxFormatProvider();
using (var output = dialog.OpenFile())
{
provider.Export(workbook, output);
fileName = dialog.FileName;
}
}
I use your demo for my project. But some time I get Error : the writer is closed or in error state.
Any Idea about this error.
It happen in line: provider.Export(workbook, output);
Thanks