...后在展开引用(References)节点, 找到Office PIA的引用, 在属性(Properties)窗口, 有一个”嵌入互操作类型”(Embed Interop Types), 将其设置成真(True), 再重新编译.
基于12个网页-相关网页
When you use embedded interop types, you can embed them from the primary interop assembly published by the author of the com component.
当使用嵌入的互操作类型时,您可以从COM组件的作者所发布的主互操作程序集中嵌入这些类型。
You can embed com types so that your application no longer requires a primary interop assembly (PIA) on the target computer.
通过嵌入COM类型,您的应用程序不再要求目标计算机上存在主互操作程序集(PIA)。
应用推荐