相关代码 |
|
public void ToExcel2(string FileName) { HttpResponse resp = Page.Response; resp.ContentEncoding = System.Text.Encoding.Default; resp.AppendHeader("Content-Disposition", "attachment;filename=" +FileName+".xls"); resp.Write("名称\t种类"); resp.End(); }
相关资源 |
|