Because of these issues, there is not much of a benefit to implement a COM smart tag in a VSTO add-in.
因为存在这些问题,在VS TO外接程序里实现一个COM智能标记是一件吃力不讨好的事情。
If you need to create a solution that can run in multiple Office hosts and is document agnostic, you can create a COM add-in using managed code.
如果需要创建可在多台Office主机中运行并且是文档不可知的解决方案,则可使用托管代码创建一个COM加载项。
Select the COM TAB of the Add Reference dialog box, and then double-click the appropriate Type Library file listed.
选择add Reference对话框的COM选项附签,然后双击所列出的合适的Type Library文件。
应用推荐