How to use Office from Visual Studio C#?

前端 未结 4 1031
栀梦
栀梦 2021-02-08 01:21

The technique for adding a reference to the COM interop of Office in Visual Studio is to go to:

  1. References
  2. Add Reference
  3. Select the COM
4条回答
  •  情歌与酒
    2021-02-08 01:50

    The answer is to "Copy Local" whatever assembly dll you get for the interop. Once you have the assembly dll in your output folder, add a reference to it, and check it into source control.

    Now everyone has the referenced assembly dll.

提交回复
热议问题