Bug Fixed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kamonwan taengsuk
2024-09-17 16:02:39 +07:00
parent 438286ba8b
commit f26091d1c7
27 changed files with 139 additions and 49 deletions

View File

@@ -68,9 +68,11 @@ namespace rmutr_report.Controllers
case "xls":
case "xlsx":
Excel2007Export excel = new Excel2007Export();
excel.ShowProgress = true;
excel.PageBreaks = true;
report.Export(excel, stream);
stream.Seek(0, SeekOrigin.Begin);
return File(stream, "application/vnd.ms-excel");
return File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
break;
case "mht":
MHTExport mht = new MHTExport();