一个问题
.net ado删除excel中Sheet2
嗯..

解决方案 »

  1.   

                com.CommandText = "drop table [Sheet2$]";
                com.ExecuteNonQuery();
                Response.Write("成功!");
    算是自言自语了散分
      

  2.   

    问题没有解决
    com.CommandText = "drop table [Sheet2$]"; 
                com.ExecuteNonQuery(); 
                Response.Write("成功!");
    这样是可以运行了
    但是打开xls里面还有这表....哎
      

  3.   

    Excel.Application MyApp;
    int tt=MyApp.Worksheets.Count;
    MySheets=new Excel.WorksheetClass();
    MySheets=(Excel._Worksheet)MyBook.Worksheets.get_Item(tt);
    MySheets.Delete();
    MySheets=null;
      

  4.   

    我要的是ado操作excel而不是com组件...