为 Office 2000 / Office 2007 构建 Com 插件
我正在努力寻找使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 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.
得到这个工作:-)
使用类库项目和 ComInterface / ClassInterface。
Got this working :-)
Using a class libary project and ComInterface / ClassInterface.