http://www.csdn.net/develop/Read_Article.asp?Id=16482

解决方案 »

  1.   

    http://www.csdn.net/develop/Read_Article.asp?Id=18344
      

  2.   

    写入后,如何把excel的进程给关了,我每次把excel关了,但是进程里面都没有关
      

  3.   

    看孟大侠的:
    http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=4EB79F05-B9A4-4E8A-836F-864393F40405
      

  4.   

    这是在C#WEB中,把DAGAGRID的内容转换成EXCEL的例子,希望对你有所帮助
    Response.ContentType = "application/vnd.ms-excel";
    Response.Charset = "";
    this.EnableViewState=false;
    System.IO.StringWriter tw=new System.IO.StringWriter();
    System.Web.UI.HtmlTextWriter hw= new System.Web.UI.HtmlTextWriter(tw);
    DataGrid1.DataSource=voilation.GetPublishViolationList(carrier1,carrydate1,number);
    DataGrid1.RenderControl(hw);
    Response.Write(tw.ToString());