【发布时间】:2016-09-09 10:59:36
【问题描述】:
这是我下载 Excel 文件的代码。
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Buffer = true;
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.ContentType = "application/ms-excel";
HttpContext.Current.Response.AppendHeader("content-disposition", "attachment ; filename=report.xlsx");
我想在 Excel 中打开它。
【问题讨论】:
-
winforms 或 webforms 或 mvc 等?