2008年9月26日
摘要: After chatting with a few people about Visual Studio Tools for Office (VSTO) recently, it’s clear that the technology is not that well understood (even though, in my opinion, Microsoft have done a pretty good job of articulating it – much better than say OBA for example). So in this post I’m aiming to give a high level overview of VSTO and clear up some misconceptions. 阅读全文
posted @ 2008-09-26 17:55 hit41 阅读(880) 评论(0) 推荐(0) 编辑
摘要: 区别概念:VSTS, VSTO, VSTA, VSX 阅读全文
posted @ 2008-09-26 17:49 hit41 阅读(847) 评论(0) 推荐(0) 编辑
摘要: Over the years, Office has exposed a number of different extensibility mechanisms, which all enable developers to build solutions based on Office. Each of these mechanisms is geared towards a different set of requirements, and the design of the extensibility interface reflects these different requirements. 阅读全文
posted @ 2008-09-26 17:42 hit41 阅读(582) 评论(0) 推荐(0) 编辑
摘要: This of course is the advantage of using the old "shared add-in" project types – you can build one add-in that targets all versions of all Office apps that support COM add-ins (ie, 2000 onwards). The question is, can you do something similar with VSTO add-ins? The answer is "No, not in any supported way". So, what kind of a cowboy hacker are you anyway? OK then, we'll explore the reasons why it's hard to get this to work, and hopefully it will become obvious why this is not supported – and a 阅读全文
posted @ 2008-09-26 17:31 hit41 阅读(690) 评论(1) 推荐(0) 编辑
摘要: At the time of writing, there are 4 versions of VSTO in existence, including 4 sets of design-time tooling and 3.5 versions of the VSTO runtime. I say 3.5 versions, because the VSTO 2005 SE runtime was an in-situ replacement for the VSTO 2005 runtime, and both are considered VSTO v2 (2005 SE was purely additive to 2005). Other versions – that is, VSTO 2003 (v1) and VSTO 2008 (v3) – are SxS with v2. 阅读全文
posted @ 2008-09-26 17:18 hit41 阅读(876) 评论(0) 推荐(0) 编辑
摘要: Office 2007 PIAs. Either way, you'll get the last registered PIAs. So what happens if you go ahead and build this project and try to run it? As before, if you explicitly run Excel 2007, everything loads and works just fine. As before, if you try to run Excel 2003, it runs with the Excel 2007 PIAs. So, if you really insist on having multiple versions of the PIAs on the box (and I can't think of a good reason, and we certainly don't support this scenario), then you can workaround the problem by 阅读全文
posted @ 2008-09-26 17:09 hit41 阅读(464) 评论(0) 推荐(0) 编辑