Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public FileResult ExportReport(Object list, string FileName) { var stream = new MemoryStream(); stream = _excelService.CreateExcel(list, stream, FileName); string excelName = $"{FileName}-{DateTime.Now.ToString("yyyyMMddHHmmssfff")}.xlsx"; return(File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", excelName)); }