是否可以从 Word 2007 文件中包含的 Visual Basic 代码调用 C# dll?
我有一些 Visual Basic 方法充当自定义 Word 功能区的单击处理程序。 不幸的是,我已经用 C# 编写了处理程序必须执行的操作的实现,并将其作为 XML 扩展包加载到 Word 文档中。
我没有看到任何方法可以将对 C# .dll 的引用添加到 Word 的 Visual Basic 编辑器。 这可能吗?
I have some Visual Basic methods that are acting as the click handlers for a custom Word Ribbon. Unfortunately, I already have the implementation of what the handlers have to do written in C# which is loaded into the Word document as an XML Expansion Pack.
I don't see any way to add a reference to the C# .dlls to Word's Visual Basic Editor. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
C# 组件必须公开 COM 接口。 http://msdn.microsoft.com/en-us/library/c3fd4a20。 .aspx.
The C# component would have to expose a COM interface. http://msdn.microsoft.com/en-us/library/c3fd4a20.aspx.