2011年4月13日

gridview 导出成excel或word文件

摘要: protected void Button1_Click(object sender, EventArgs e){Export("application/ms-excel", "学生成绩报表.xls");//ms-doc 导出成word}private void Export(string FileType, string FileName) { //以下三行可选,如果没有的话导出的只是当前页数据,没有其他页数据 // GridView1.AllowPaging = false; //GridView1.AllowSorting = false; // 阅读全文

posted @ 2011-04-13 13:40 缘来 阅读(270) 评论(0) 推荐(0)

导航