This commit is contained in:
kamonwan taengsuk
2023-03-17 19:07:48 +07:00
parent 3ba45fb90a
commit 7878d8ae9e
7 changed files with 97 additions and 61 deletions

View File

@@ -77,11 +77,11 @@ namespace rmutr_report.Controllers
stream.Seek(0, SeekOrigin.Begin);
return File(stream, "multipart/related");
break;
case "csv":
CSVExport csv = new CSVExport();
report.Export(csv, stream);
case "doc": case "docx":
Word2007Export word = new Word2007Export();
report.Export(word, stream);
stream.Seek(0, SeekOrigin.Begin);
return File(stream, "text/csv");
return File(stream, "appllication/vnd.ms-word");
break;
}