問(wèn)題描述
我需要為需要訪問(wèn)數(shù)據(jù)庫(kù)的 MS Word 2007 創(chuàng)建一個(gè)非常小的加載項(xiàng).我在網(wǎng)上讀到可以在 WPF/C# 中編寫用戶控件(這對(duì)我有很大幫助)并將其托管在 Winforms 主機(jī)中.
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.
但我需要開(kāi)始 - 有人知道一些好的資源嗎?
But I need to get started - anyone know some good resources?
我需要什么信息:
- 如何開(kāi)始部署事物
- 要求 - 我可以使用第 3 方 dll 嗎 - 它們是否需要簽名等.
- 安全性 - 我是否僅限于沙盒安全性?我需要使用 WCF 還是可以直接訪問(wèn) SQL 服務(wù)器?
- Word 對(duì)象模型入門
提前致謝!
推薦答案
是的,完全.幾個(gè)月前我自己做了一些,雖然我沒(méi)有直接去 SQL(雖然我認(rèn)為它可以做到).這兩篇文章幫助我入門:
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:
- 使用構(gòu)建基于 Office 的解決方案WPF、WCF 和 LINQ
- 將 WPF 與 VSTO & 一起使用辦公室2007
這篇關(guān)于尋找在 VSTO 中使用 WPF 的教程的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!