110,534
社区成员
发帖
与我相关
我的任务
分享
//创建word文档
Word.ApplicationClass WordApp = new Word.ApplicationClass();
Word.Document WordDoc = WordApp.Documents.Add(ref Nothing, ref Nothing, ref Nothing, ref Nothing);
WordDoc.Paragraphs.First.Range.Text = "aaa";
//文档中创建表格
Word.Table newTable = WordDoc.Tables.Add(WordApp.Selection.Range, 7 , 5 , ref Nothing, ref Nothing);