寻找在 VSTO 中使用 WPF 的教程

2021-09-20 00:00:00 sql-server wpf vsto

我需要为需要访问数据库的 MS Word 2007 创建一个非常小的加载项.我在网上读到可以在 WPF/C# 中编写用户控件(这对我有很大帮助)并将其托管在 Winforms 主机中.

I need to create a very small add-in for MS Word 2007 which needs access to a database. I've read around the 'net that it is possible to write the usercontrol in WPF/C# (which would help me a lot) and host it inside a Winforms host.

但我需要开始 - 有人知道一些好的资源吗?

But I need to get started - anyone know some good resources?

我需要什么信息:

  • 如何开始部署事物
  • 要求 - 我可以使用第 3 方 dll 吗 - 它们是否需要签名等.
  • 安全性 - 我是否仅限于沙盒安全性?我需要使用 WCF 还是可以直接访问 SQL 服务器?
  • Word 对象模型入门

提前致谢!

推荐答案

是的,完全.几个月前我自己做了一些,虽然我没有直接去 SQL(虽然我认为它可以做到).这两篇文章帮助我入门:

Yeah, totally. Did a bit of this myself a few months ago, albeit I didn't go to SQL directly (although I suppose it can be done). These two articles helped get me started:

  • 使用构建基于 Office 的解决方案WPF、WCF 和 LINQ
  • 将 WPF 与 VSTO & 一起使用办公室2007

相关文章