开发 MS Word 插件

发布于 2024-07-05 23:51:20 字数 78 浏览 6 评论 0原文

有人知道在 .net 中开发 Word 插件的好工具吗? 希望能同时支持 Office 2003 和 2007。

谢谢。

Anyone knows of a good tool for developing add-ins for Word in .net?
Hopefully something that supports both office 2003 and 2007.

Thanks.

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

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

发布评论

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

评论(5

浪漫人生路 2024-07-12 23:51:20

Office 开发工具有很多选项。 最明显的当然是 Office 本身。 它对宏和VBA有丰富的支持。 您还可以使用 SharePoint 来扩展文档共享和管理功能。 但是,如果您的加载项比 Office 内部处理的更复杂,我建议您使用 Visual Studio 2008Tools For Office Visual Studio 2005 的附加组件。

需要记住的一件事是,Office 主要是 COM 对象的集合。 因此,虽然像 Visual Studio 这样的工具凭借其对 .NET Framework 和 Office 类的深入支持,使得开发 Office 应用程序解决方案变得非常简单,但只要有一些时间、精力和对痛苦的高度容忍度,您就可以开发一个 Office 附加组件——用记事本输入。

Microsoft 为 Office 开发人员提供了一个非常好的资源网站此处< /a>.

There are lots of options for development tools for Office. The most obvious one is of course Office itself. It has rich support for macros and VBA. You could also use SharePoint to extend document sharing and management functionality. But if your add-in is more complex than can be handled inside of Office, I suggest you use Visual Studio 2008 or the Tools For Office add-on for Visual Studio 2005.

One thing to keep in mind is that Office is mostly a collection of COM objects. So while tools like Visual Studio, with its deep support of the .NET Framework and Office classes make it very simple to develop solutions for Office applications, with some time, energy, and a high tolerance for pain, you could develop an Office add-in with Notepad.

Microsoft has a very nice resource site for Office developers here.

简单 2024-07-12 23:51:20

有多种工具可用于开发 Office 扩展,并且有很多关于该主题的书籍。 一些更流行的方法是:

  • VBA 随 Office 一起提供,可以以两种模式使用。 首先,可以在文档或模板中编写宏。 这样做的优点是代码遵循文档,缺点是无法轻松地将更新传播到现有文档。 它还可用于开发扩展,方法是将带有宏的文档放置在正确的文件夹中并将其注册到 Office。
  • Visual Studio Tools for Office 允许您执行类似 VBA 的项目,但与.Net。 程序集可以与文档捆绑在一起或作为扩展安装。 请注意,VSTO 对于执行非捆绑扩展不是必需的 - 如果安装 Office 的主要互操作程序集。 这些垫片将 COM API 与本机 .Net 包装在一起。
  • 任何支持 COM(组件对象模型) 的语言都可用于开发 Office 扩展。 此类语言的示例包括 C++、Delphi 和 Python。

Several tools can be used to develop extensions for Office and there are quite a number of books on the subject. Some of the more popular approaches are:

  • VBA comes with office and can be used in two modes. In the first, macros can be written within the document or a template. This has the advantage that the code follows the document and the disadvantage that you cannot easily propogate updates to existing documents. It can also be used to develop extensions by placing a document with the macros in the right folder and registering it with Office.
  • Visual Studio Tools for Office Allows you do to VBA-like projects but with .Net. The assemblies can be bundled with the documents or installed as extensions. Note that VSTO is not necessary for doing non-bundled extensions - you can do this with any .Net development tool if you install the Primary Interop Assembiles for Office. These are shims that wrap the COM API with a native .Net one.
  • Any language such as that supports COM (Component Object Model) can be used to develop office extensions. Examples of such languages are C++, Delphi and Python.
拥抱没勇气 2024-07-12 23:51:20

Visual Studio 2008。VB.NET。

Visual Studio 2008. VB.NET.

把梦留给海 2024-07-12 23:51:20

任何版本的 Visual Studio 都可以完成这项工作。 请记住考虑部署以及您是否希望要求用户安装这个或那个版本的 .net 框架。

Any version of Visual Studio will do the job. Remember to think about deployment and if you'd want to require the user to have this or that version of the .net framework installed.

誰ツ都不明白 2024-07-12 23:51:20

丹尼尔·莫斯一些非常好的 VSTO 入门网络广播,请观看这​​些。

Daniel Moth have made some very good VSTO primer webcasts, take a look at those.

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