2010年6月2日
摘要: 在尝试Visual Studio 2010 简体中文版时,我发现创建一个并发布Windows类型的项目时(如一个 C# windows 应用程序),如果在发布应用程序时选择使用“Microsoft .NET Framework 4 Client Profile (x86 and x64)”作为“系统必备”组件,同时选中“从与我的应用程序相... 阅读全文
posted @ 2010-06-02 11:19 hit41 阅读(4206) 评论(2) 推荐(1) 编辑
  2008年9月27日
摘要: Office Business Applications is a term getting bandied about a fair bit these days. What is it exactly? Well, answers differ, and you’d be forgiven if you thought it was as simple as using Office to build Applications for use in Business. The purpose of this post is to try to get some simple high level understanding of OBAs. In later posts I’ll be digging into resources and also covering VSTO. 阅读全文
posted @ 2008-09-27 14:59 hit41 阅读(598) 评论(0) 推荐(0) 编辑
  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 阅读(841) 评论(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 阅读(689) 评论(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) 编辑