public async Task GenerateXls(Demo demo, string fileName) { SingleExport export = new SingleExport(demo); IWorkbook workbook = await export.Generate(); FileStream sw = File.Create(fileName); workbook.Write(sw); sw.Close(); }