本人使用的是VS2010 Ultimate版本新建WindowsFormsApplication后,添加“Microsoft Word 12.0 Object Library”后。编译如下代码:
-------------------------------------------------------- private void Form1_Load(object sender, EventArgs e)
        {
            Object MyMissing = System.Reflection.Missing.Value;
            ApplicationClass MyWord = new ApplicationClass();
            string MyText = "China is a greate country";
                 
            bool MyResult = MyWord.CheckSpelling(MyText, ref MyMissing, ref MyMissing, ref MyMissing, ref MyMissing, ref MyMissing, ref MyMissing, ref MyMissing, ref MyMissing, ref MyMissing, ref MyMissing, ref MyMissing, ref MyMissing);
            if (MyResult)
                MessageBox.Show("没有发现英文拼写错误!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            else
                MessageBox.Show("有英文拼写错误,请注意检查!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }----------------------------------------------------
有错误:error CS1752: Interop type 'Microsoft.Office.Interop.Word.ApplicationClass' cannot be embedded. Use the applicable interface instead.
迷惑ing,求高三帮忙