C#操作Word
最近在做关于word的内容。想向已经打开的word的插入一段文字,现在用的代码是:
Selection this_selection = Globals.ThisAddIn.Application.Selection;
this_selection.InsertAfter(“这是要插入的文字”);
this_selection.EndKey(WdUnits.wdStory);
this_selection.InsertParagraph();
这个虽然是能插入,但是有个问题,这个是在光标的地方在插入,我想做的是只在文字的后面继续插入文字,不管光标在哪里.
这个怎么弄?求问。