[求助]关于Gridview导出数据到excel或word的问题
我能正常导出数据,但为什么excel的第一行是空的word呢,第一行有一个文本框
就象这样的
我的程序是这样的
Response.Clear();
Response.Buffer = true;
Response.Charset = "gb2312";
Response.Charset = "UTF-8";
Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");
Response.ContentType = "application/" + type + "";
Response.AddHeader("content-disposition", "attachment;filename=" + filename);
Response.ContentEncoding = System.Text.Encoding.Default;
this.EnableViewState = false;
GridView1.DataSource = WBooking.GetBookingList("200620072", "", "", "");
GridView1.DataBind();
怎样才能导出正确的格式呢,请高手指点一下
谢谢