在Word中插入Excel对象

 using Word = NetOffice.WordApi;

 Word.Document doc = this._wordApplication.Documents.Add(@"C:\Users\li\Desktop\新建文件夹 (3)\Doc1.docx");

 Word.ContentControl contentControl = doc.ContentControls.Add();
contentControl.Title = "测试";
contentControl.Tag = "test"; object type = @"Excel.Sheet";//插入的excel
contentControl.Range.InlineShapes.AddOLEObject(type);
上一篇:java.util.jar.JarFile cause native heap memory leak


下一篇:IE禁用Cookie后的session处理