是否可以从 Word 2007 文件中包含的 Visual Basic 代码调用 C# dll?

发布于 2024-08-01 21:46:56 字数 181 浏览 1 评论 0原文

我有一些 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

献世佛 2024-08-08 21:46:56

The C# component would have to expose a COM interface. http://msdn.microsoft.com/en-us/library/c3fd4a20.aspx.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文