📜  从 mvc 视图返回时如何编写 excel 内容类型 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:01.744000             🧑  作者: Mango

代码示例2
Response.ContentType = "application/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";

Response.AppendHeader("content-disposition", "attachment; filename=myfile.xlsx");