为 Office 2000 / Office 2007 构建 Com 插件

发布于 2024-08-12 17:45:46 字数 335 浏览 3 评论 0原文

我正在努力寻找使用 VSTO 和 VB.net 创建 Office 插件的直接指南。

具体来说,我想知道如何创建一个 addin/ dll,它可以从 VBA 中以以下形式引用:-

Addin.method(argument) 或 Addin.property = X

或者安装自己的自定义工具栏/功能区Office 某个方面的接口,例如 Word。

我检查了 MSDN,在解释的易读性和可用性方面,到目前为止我还是一片空白。

目前,我需要为 Office 2000 创建至少一个插件来运行和操作 SQL,然后为自定义 Office 2007 (Word) 设置创建一套插件。

I am struggling to find a straight forward guide to creating office addins using VSTO and VB.net.

Specifically I would like to know how to be able to create a addin/ dll which can either be referenced from VBA in the form:-

Addin.method(argument) or Addin.property = X

Or which would install its own custom toolbars/ ribbon interface to an aspect of office for example Word.

I've checked MSDN and in terms of legibility and usability of the explanations I have drawn a blank so far.

I currently have a requirement to create at least one addin for Office 2000 to run and manipluate SQL and then a suite of addins for a customized Office 2007 (Word) set-up.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

妖妓 2024-08-19 17:45:46

从 VBA 代码向脚本引擎添加全局命名项需要脚本引擎通过 IActiveScript::AddNamedItem 公开自身。我认为 Microsoft 不会很快这样做,因为这可能会破坏现有的 VBA 代码。

Adding global named items to the script engine from VBA code requires the script engine expose itself via IActiveScript::AddNamedItem. I doin't think Microsoft would do it anytime soon as this could break existing VBA code.

太阳公公是暖光 2024-08-19 17:45:46

得到这个工作:-)

使用类库项目和 ComInterface / ClassInterface。

Got this working :-)

Using a class libary project and ComInterface / ClassInterface.

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