开发多个办公单词VSTO模板

发布于 2025-02-10 04:17:37 字数 111 浏览 1 评论 0原文

我正在尝试将许多单词模板从VBA(.dotm)改写为C#使用VSTO&视觉工作室。

我的问题是,是否可以使用一个VSTO安装或捆绑包部署多个单词模板,以便用户不必为每个模板安装VSTO?

I am trying to revamp lots of word templates from VBA (.dotm) to C# using VSTO & Visual Studio.

My question is if its possible to deploy multiple word templates with one VSTO installation or bundle so the user does not has to install VSTO for every template?

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

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

发布评论

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

评论(1

奢欲 2025-02-17 04:17:37

Word有两种VSTO加载项 - 应用程序级别和文档级别的加载项。应用程序级别的加载项不是特定的或链接到任何文档的,它们是为应用程序安装的,而不是文档。因此,如果您考虑为Word创建应用程序级加载项,则可以在加载项中包含任何数量的模板。而且无需为每个文档创建文档级加载项。请参阅演练:创建您的第一个vsto vsto加载项以获取更多信息。

对于文档级插件,请参见演练:为单词创建第一个文档级别自定义

There are two kinds of VSTO add-ins for Word - application-level and document-level add-ins. The Application level add-ins are not specific or linked to any document, they are installed for the application, not document. So, if you consider creating an application-level add-in for Word you may include any number of templates to the add-in. And there is no need to create a document-level add-in for each of them. See Walkthrough: Create your first VSTO Add-in for Word for more information.

For document-level add-ins, see Walkthrough: Create your first document-level customization for Word.

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