急!!!!用微软的excel类 如何增加一个sheet啊,高手请指点!
这段 是我自己写的,但是增加不了sheet;该如何修改,请高手指点下!Excel.ApplicationClass app = new ApplicationClass();
Excel.Workbooks Wbs = app.Workbooks;
Excel.Sheets sheets =null;
Excel.Workbook wb = Wbs.Open(@"C:\Documents and Settings\Administrator\桌面\测试\合同配方\dd.xls", Type.Missing, (object)false,Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
sheets = wb.Worksheets;
app.Workbooks.Add(true);
sheets.Add(Missing.Value,Missing.Value,Missing.Value,Missing.Value); --------------------编程问答-------------------- 我顶你
补充:.NET技术 , C#