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);
            }
        }

 

posted on 2019-12-24 13:28  GIS-MAN  阅读(607)  评论(0编辑  收藏  举报

导航