vsto 将图片加入到word里面
private void AddPictoWord() { string folderpath = @"C:\Users\k0021213\Pictures\QQ浏览器截图"; DirectoryInfo dicrectory = new DirectoryInfo(folderpath); FileInfo[] filelist = dicrectory.GetFiles(); Document doc = Globals.ThisAddIn.Application.ActiveDocument; foreach (FileInfo f in filelist) { doc.InlineShapes.AddPicture(f.FullName, false, true, Type.Missing); } }