我启用了分页 可是打印出来  就是本页面的  
我的代码是     我想打印表里所有的信息  可是  才出来我分页显示的那几条   怎么才能全部打印 谢谢 不够我追加分
 protected void Button1_Click(object sender, EventArgs e)
    {
        string style = @"<style>.text{mso-number-format:@}</script>";
        GridView1.AllowPaging = false;
        GridView1.AllowSorting = false;        Response.ClearContent();
        Response.Charset = "GB2312";
        Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.xls");
        Response.ContentType = "application/excel";
        Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");
        Response.Write("<meta http-equiv=Content-Type content=\"text/html;charset=GB2312\">");
        StringWriter sw = new StringWriter();
        HtmlTextWriter htw = new HtmlTextWriter(sw);
       
        GridView1.RenderControl(htw);
        GridView1.PageSize = 10000;
        GridView1.Style.Add("word-break", "keep-all");
        Response.Write(sw.ToString());
        Response.End();
    }
    public override void VerifyRenderingInServerForm(Control control)
    {    }