Can't locate Microsoft.Office.Interop.Word in Reference List

后端 未结 5 815
盖世英雄少女心
盖世英雄少女心 2020-12-09 03:47

I was given this solution to a problem I had, since I didn\'t know how to integrate MS Word with C#: http://www.dotnetperls.com/word

I looked into this solution, and

5条回答
  •  醉话见心
    2020-12-09 04:28

    Check if the library (Microsoft.Office.Interop.word) is present in the assembly folder of windows (C:\Windows\assembly) else you can install it from http://www.microsoft.com/en-us/download/details.aspx?id=3508

    Now you just need locate it in your visual studio.

    Right click on the consoleApplication(or name of you application) in SolutionExplorer window and

    Go to Add -> References-> Browse and find C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.word or similar directory. press ok and your can now use the library in your application.

提交回复
热议问题