Microsoft.Office.Interop.Word.Document doc = Globals.ThisAddIn.Application.ActiveDocument;//获取当前最新一个打开的文档
Selection focusSelect = Globals.ThisAddIn.Application.Selection; //获取光标位置
int start1 = focusSelect.Start;
int end2 = focusSelect.End;
focusSelect.TypeText(text);
InlineShape inlineShape = focusSelect.InlineShapes.AddPicture(@"本地图片路径");
focusSelect.InlineShapes.AddPicture(@"网络图片路径");
//inlineShape.Width = 20;
//inlineShape.Height = 20;
int start = focusSelect.Start;
int end = focusSelect.End;
focusSelect.TypeParagraph(); //添加一个段落
Range range = focusSelect.Range;
// Range range = doc.Range();
r