this.OpenFile(@"c:\1.doc",false);
        //读取并将图片保存到指定目录中

            int i = 0;
            foreach (Word.InlineShape ish in MyDoc.InlineShapes)
            {
                if ((ish.Type == Word.WdInlineShapeType.wdInlineShapeLinkedPicture) || (ish.Type==Word.WdInlineShapeType.wdInlineShapePicture))
                {
                    ish.Select();
                    MyWordApp.Selection.Copy();
                    Image image = Clipboard.GetImage();

                    Bitmap bitmap = new Bitmap(image);
                    bitmap.Save("c:\\pic" + i.ToString() + ".jpg");
                    i++;
                }
            }

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2021-12-15
  • 2021-07-23
  • 2022-01-02
  • 2022-01-02
  • 2022-01-01
猜你喜欢
  • 2021-12-15
  • 2021-12-15
  • 2021-08-21
  • 2021-05-28
  • 2021-11-27
相关资源
相似解决方案