PIA's Installed but still receiving interop error

后端 未结 1 1131
你的背包
你的背包 2021-01-16 21:52

I am trying to use the Microsoft.Office.Interop.xxxxxxx namespace but Visual Studio 2010 is not providing an option for \"interop\". I have the PIA\'s installed for office12

相关标签:
1条回答
  • 2021-01-16 22:39

    You didn't pick the correct reference. Use "Microsoft Excel 14.0 Object Library" instead.

    Note that VS2010 supports the Embed Interop Types property for an assembly reference. You really want to use that for an Office app, no PIA required. It is automatically set to True.

    0 讨论(0)
提交回复
热议问题