VSTO学习资料:Converging the Office Add-in Model

Origin url: http://blogs.msdn.com/andreww/archive/2006/02/18/converging-the-office-add-in-model.aspx 

 

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.

Think of the options: COM add-ins, XLLs and WLLs, XLAs and DOTs, automation add-ins, realtime data servers, Excel UDFs via XLLs, smart tags, and smart docs. For each of these technologies, you have a partially overlapping set of development language options: VBA, VB6/C/C++, and managed code. Also a range of choices for toolset: automation, declarative XML (MOSTL), the web services toolkits, the accessibility interfaces, COM/.NET interop via the PIAs, and VSTO.

This is all well and good, but there is one drawback: inconsistency. For example, consider that the way you develop a smart tag for Excel is completely different from the way you develop a UDF for Excel (plus, you have 3 different ways to develop a UDF). It is good that Office has exposed a range of precisely-scoped programmability interfaces, but the time has come to bring some order to the offering.

This is one of the many ways that Office 2007 improves on the past. All the new programmability features in Office 2007 are designed to use the same development model as far as possible (allowing for differences in the Office applications themselves). These new features include custom taskpanes, ribbon customization and Outlook custom form regions.

Q: How do you develop an app-level custom taskpane?
A: Build an add-in.

Q: How do you develop an app-level custom ribbon?
A: Build an add-in.

Q: How do you develop an Outlook custom form region?
A: Build an add-in.

Designing this model for all new programmability features is a big step forward. You might ask, what about the old programmability features? Why can't I build a smart tag by building an add-in? Why can't I build a UDF by building an add-in? The anwer is that retro-fitting this model to existing interfaces is problematic. If we change the way Office loads smart tags and UDFs, what would happen to all the existing smart tags and UDFs that use the old model? It may be that over time, even the old programmability features can be brought into the brave new world. Maybe we could engineer it so that new smart tags are add-ins, and old smart tags still work the same way they did. This is a longer-term question, and it would be interesting to get feedback from the industry as to how useful this might be.

For now, the significant message is that VSTO is the default toolset for building Office solutions going forwards, and add-ins are the primary mechanism for implementing custom functionality for Office.

 

转载于:https://www.cnblogs.com/hit41/archive/2008/09/26/1299734.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值