[Route("getopenfrequencyexcel")]
[HttpGet]
public IActionResult GetOpenFrequencyExcel(int projectid,int quetionnaireid,string demographicIds)
{
// HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
if (projectid > 0 )
{
string sWebRootFolder = _hostingEnvironment.WebRootPath; //core 获取路径
//hostingEnvironment.WebRootPath; XXX/wwwroot hostingEnvironment.ContentRootPath; XXX
https://www.cnblogs.com/rumeng/p/3785748.html)
}
var returnFile = File(name, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", name);
returnFile.FileDownloadName = name;
return returnFile;
}
else
{
return null;
}
}