新手入门,有的东西不懂,望高手给我具体的说下用什么做最好,用到什么东西,最好有现成的代码。。谢谢

解决方案 »

  1.   

    using System;
    using System.Collections.Generic;
    using System.Text;
    using Word = Microsoft.Office.Interop.Word;
    using Microsoft.Office.Interop.Word;using Microsoft.Office.Core;
    using System.Drawing;using System.Windows.Forms;namespace Get_pic
    {
        class Program
        {
            static void Main(string[] args)
            {
                Word.Application newApp = new Word.Application();
                newApp.Visible = false;
                string sFileName = "C:\\Documents and Settings\\Administrator\\桌面\\abc\\11.doc"; 
                object objFileName = ((object)sFileName);   
               
                object obj = Type.Missing;
                //打开Word文档
                Microsoft.Office.Interop.Word.Document doc = newApp.Documents.Open(ref objFileName, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj);
                
               int count = doc.InlineShapes.Count;
               int i = 0;
               foreach (Word.InlineShape ish in doc.InlineShapes)
               {
                  if (ish.Type == Word.WdInlineShapeType.wdInlineShapePicture)
                   {
                       ish.Select();
                       newApp.Selection.Copy();
                     
                       Image image = Clipboard.GetImage();
                        Bitmap bitmap = new Bitmap(image);
                       bitmap.Save("C:\\Documents and Settings\\Administrator\\桌面\\abc");
                       i++;
                   }
               }        }
        }
    }
      

  2.   

    http://www.baidu.com/link?url=jnZVGJqjJ4zBBpC8yDF8xDhiqyriBV-kCioEb5kFNc3b2ZwpIDtxrtVrBCrt