110,533
社区成员
发帖
与我相关
我的任务
分享
private void ExportExcel(string fileName)
{
StringWriter sw = new StringWriter();
sw.WriteLine(fileContent);
Response.AddHeader("Content-Disposition","attachment;filename="+fileName+"");
Response.ContentType="appication/ms-excel";
Response.ContentEncoding=System.Text.Encoding.GetEncoding("UTF8");
Response.Write(sw);
}