Tags: ,,,.

开发者一直都有将Word编程模式能力扩展的能力并获得不可思议的结果。今天我们将介绍5个很热的功能,这些功能使得新Word对于开发者来说比以往任何时候都要好。

1.Apps for Word – 拥抱云

Apps for Office是一个令人幸福的方式,它可以通过像HTML5和JavaScript这样的网页技术来扩展Office程序,这些能使Office开发者用新的更好的方法来部署、提示、货币化和享受使用office!Word支持工作表格应用程序,这可以让用户扩展Word的功能。Word应用程序支持通过Office 开放XML(可扩展标记语言)来高保真的导入导出文本内容,允许用户添加像格式化表格、带标题的图片和视频这样的内容。

应用程序同时可以读取整个文档来高保真的打印、传真或其他应用场景。此外可以通过借用定制化XML内容和数据绑定的强大功能来实现各种应用场景的需求。比如一个记录近期支出的xml文件可以用于动态产生定制化的发票。你可以通过熟悉这个实例程序来了解怎样使用Word程序定制化XML部分更多内容。

为了开始开发Office类程序,首先了解Office和Sharepoint应用博客和dev.office.com. 这是非常好的资料可以帮助开发者了解Office API和功能,代码实例能让开发变得更简单。

2. 内容控制改善

通过几次产品的发布,我们努力工作使Word成为一个优秀结构的文档编辑器。我们创建了Office 2007里的内容控制,在Office2011里基于这个组建实现了这个功能。在Office2013里面我们再次提升了已有的内容控制功能使其更加方便易用。

随着Word文档保护的内容控制类型不断增多,我们意识到使得内容控制变得更加灵活非常重要。我们想要确保带有多个内容控制(包括多层嵌套)的文档能够符合用户的需求。

最后,Word 2013现在支持提升后的可视化内容控制 – 文档作者拥有如下功能:

为每一个控制选择一个可视模型

升级控制颜色

对于可视化模式,现在我们让用户定制是让控制以一种绑定的盒子(像在Office2010里面实现到),用开始结束标签标记(通常是当多个组件嵌套);或者是不可见(通常当用户不需要了解底层的内容)。下面图片展示了这些选项:

你可以再内容控制属性对话框(通过开发者->属性按钮访问)设置可视化模式和内容控制组建UI的颜色。如下所示是富文本控制对话框:

3. 绑定富文本内容控制

你可能会问,我们清楚的知道开发人员希望能够将富文本控制绑定到可定制的XML内容(叶节点或者属性)。你能够像绑定其他控制那样绑定控制,或者你可以使用新的XML映射面板来创建绑定(下图)。

当映射激活的时候,指定的定制XML节点包含控制内容控制的XML序列表现。这个序列化按如下流程创建:

Word获取展示控制内容的平面XML(就像.Word OpenXML属性对那些对象做的那样)

Word检查返回字符串来删除保留XML字符

Word在映射表节点内将结果保存为文本内容

4. 重复的内容控制

结构化文本另一个非常普遍的请求就是允许文档作者去映射列表数据和结构化数据。比如说,在一个结构化的消费报告里,允许用户添加支出新行。为了支持这些请求,我们创建了一个新的内容控制类型:重复的块内容控制组件。这个控制组件可以在表格中的一行(或者多行)或段落内容任意段落重添加。一旦添加,用户可以添加新行到控制组件;如果控制组件被绑定了,这些行里的内容将会存储到文档定制XML里。

绑定一个重复的区域内容控制组建到一个定制化的XML文档也是可能的。控制组件自身可以映射到一个节点集,然后控制组件里的每一个重复项将被映射到集合里的节点,比如:

5. XML映射面板

最终,我们也听到一些声音说在Word里设置XML映射到内容控制是很难的。为了让这些变得简单,Word 2013包含了一个内建的XML映射表工作面板(从开发者 标签激活),这个面板允许用户在文档中添加定制的XML内容并映射这些内容到内容控制组件。

比如,我有如下所示的一些XML:

我可以将其添加到一个Word文档并通过如下方式简单的创建XML映射表:

打开工作面板

展开定制XML内容列表并选择添加新内容….

选择想要映射的项,右键并选择插入内容控制,这时会展示这个内容可以到的有效内容控制项:

选择它插入一个新的内容控制组件并创建XML映射表,一步就能设置好一切。

这里集成所有一切

我们对于这些能帮助开发者的新的和已经存在的用户场景感到非常兴奋。我们同时知道开发认真依赖于像VBA、VSTO解决方案和Com组件这样传统的扩展模型,这些技术在新的Office里也会继续支持!你还会发现我们一些新的功能,像视频、扩展/收缩等等也会展示在新版Word里的对象模型。这些允许你那些已有的解决方案可以继续在新的Word里面继续使用并允许你根据需求添加新的功能。

根据上面描述的功能,我们提供了一个工具来发布你客户的定制体验。同时通过Office应用程序,我们允许你在以后通过选择适合你的商业模式这样的一步操作来达到对客户的广泛设置。你的应用可以是免费的、基于试用,广告支持等等。一旦你决定怎样发布给你的客户,你可以使用Office store来发布你的产品。用户可以获取到你的应用通过如下方式:直接从Word里面搜索,或者直接从已经包括你应用的文档或者模版里面打开。不要忘记阅读http://officeappcontest.com/来学习怎样通过开发应用程序应得奖赏。

感谢您的阅读,我们希望您喜欢新版Word的面向开发者功能。

作者:sanmaofly,原文链接:http://article.yeeyan.org/view/291276/340109


94条评论

  1. 从不用word

  2. 必胜客网上订餐官网www.bishengke.org 肯德基网上订餐www.baifenquan.com 德克士网上订餐www.dlcos.com 肯德基优惠券打印www.9ikfc.com 胶体磨www.langtongjixie.net 个人所得税www.qeeshi.com 麦当劳网上订餐www.4008-517517.com

  3. Thank you very much for sharing.Your article is wonderful.

  4. Very handful of web-sites that occur to become in depth below, from our point of view are undoubtedly well really worth checking out.

  5. Sites of interest we have a link to

  6. Here are a number of the websites we suggest for our visitors

  7. always a huge fan of linking to bloggers that I really like but don

  8. The data mentioned within the post are several of the top accessible

  9. the time to read or visit the content material or internet sites we’ve linked to beneath the

  10. The facts talked about in the article are some of the most beneficial accessible

  11. Here are a number of the internet sites we advocate for our visitors

  12. Here are several of the web sites we recommend for our visitors

  13. always a big fan of linking to bloggers that I adore but don

  14. Every after in a while we opt for blogs that we study. Listed beneath are the latest web-sites that we pick out

  15. The info mentioned inside the write-up are some of the ideal readily available

  16. that would be the finish of this write-up. Here you

  17. please visit the web sites we stick to, like this 1, as it represents our picks through the web

  18. very few sites that come about to be comprehensive beneath, from our point of view are undoubtedly effectively really worth checking out

  19. that would be the finish of this write-up. Here you

  20. Here are a few of the web pages we advise for our visitors

  21. that could be the finish of this article. Right here you will come across some web pages that we feel you will appreciate, just click the links over

  22. please check out the sites we adhere to, like this one particular, because it represents our picks from the web

  23. usually posts some incredibly fascinating stuff like this. If you are new to this site

  24. that is the finish of this report. Here you

  25. The info talked about in the post are some of the very best out there

  26. please go to the websites we stick to, which includes this one, because it represents our picks from the web

  27. very handful of sites that happen to be detailed beneath, from our point of view are undoubtedly effectively worth checking out

  28. very handful of web sites that come about to become in depth below, from our point of view are undoubtedly very well worth checking out

  29. Here is a superb Weblog You might Come across Exciting that we Encourage You

  30. just beneath, are several completely not connected internet sites to ours, on the other hand, they are certainly really worth going over

  31. please check out the sites we adhere to, like this a single, as it represents our picks in the web

  32. that may be the finish of this article. Right here you will obtain some websites that we assume you

  33. below you

  34. Wonderful story, reckoned we could combine a few unrelated information, nonetheless really worth taking a search, whoa did one particular learn about Mid East has got a lot more problerms as well

  35. Every when in a while we select blogs that we study. Listed below would be the most current internet sites that we opt for

  36. check below, are some entirely unrelated sites to ours, even so, they’re most trustworthy sources that we use

  37. Wonderful story, reckoned we could combine a handful of unrelated information, nevertheless genuinely really worth taking a appear, whoa did a single understand about Mid East has got extra problerms as well

  38. one of our guests lately proposed the following website

  39. Here are a few of the web-sites we recommend for our visitors

  40. usually posts some really fascinating stuff like this. If you

  41. check below, are some absolutely unrelated internet sites to ours, nevertheless, they’re most trustworthy sources that we use

  42. The data talked about inside the article are several of the most effective obtainable

  43. The data mentioned inside the article are a few of the most beneficial obtainable

  44. just beneath, are numerous entirely not connected web-sites to ours, on the other hand, they are certainly worth going over

  45. check beneath, are some absolutely unrelated web sites to ours, on the other hand, they may be most trustworthy sources that we use

  46. check beneath, are some totally unrelated sites to ours, on the other hand, they’re most trustworthy sources that we use

  47. although web-sites we backlink to beneath are considerably not connected to ours, we feel they’re really worth a go via, so possess a look

  48. below you

  49. here are some hyperlinks to web pages that we link to because we feel they’re really worth visiting

  50. please check out the websites we comply with, which includes this a single, because it represents our picks in the web

  51. Here is a great Weblog You might Obtain Interesting that we Encourage You

  52. usually posts some incredibly exciting stuff like this. If you are new to this site

  53. Sites of interest we have a link to

  54. please pay a visit to the internet sites we follow, which includes this one, as it represents our picks in the web

  55. here are some links to websites that we link to for the reason that we consider they’re really worth visiting

  56. Every after in a although we choose blogs that we read. Listed below are the latest web sites that we decide on

  57. usually posts some pretty intriguing stuff like this. If you are new to this site

  58. very few internet websites that take place to be in depth beneath, from our point of view are undoubtedly properly really worth checking out

  59. check beneath, are some totally unrelated web sites to ours, on the other hand, they are most trustworthy sources that we use

  60. below you

  61. The information mentioned inside the post are some of the most effective readily available

  62. we like to honor many other internet internet sites around the net, even though they aren

  63. Wonderful story, reckoned we could combine a few unrelated information, nonetheless really worth taking a look, whoa did one find out about Mid East has got much more problerms at the same time

  64. below you

  65. Sites of interest we have a link to

  66. Every when in a even though we decide on blogs that we read. Listed beneath are the most current web pages that we choose

  67. just beneath, are many completely not associated web-sites to ours, on the other hand, they are surely really worth going over

  68. below you will discover the link to some internet sites that we assume you ought to visit

  69. the time to study or stop by the content or websites we have linked to beneath the

  70. check beneath, are some absolutely unrelated internet websites to ours, on the other hand, they may be most trustworthy sources that we use

  71. that may be the finish of this write-up. Right here you

  72. please visit the web sites we follow, including this a single, because it represents our picks from the web

  73. below you will obtain the link to some websites that we consider you should visit

  74. R26bOI Awesome post.Really looking forward to read more. Want more.

  75. check below, are some absolutely unrelated web-sites to ours, nonetheless, they’re most trustworthy sources that we use

  76. very few sites that come about to be detailed beneath, from our point of view are undoubtedly well really worth checking out

  77. just beneath, are several entirely not associated web pages to ours, nonetheless, they are surely worth going over

  78. The info mentioned inside the article are a few of the very best readily available

  79. please stop by the web sites we comply with, such as this 1, as it represents our picks through the web

  80. just beneath, are quite a few entirely not associated web-sites to ours, however, they may be surely really worth going over

  81. the time to read or pay a visit to the material or web-sites we’ve linked to below the

  82. Some genuinely good and utilitarian info on this internet site, likewise I feel the layout has wonderful attributes.

  83. It is the best time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Maybe you can write next articles referring to this article. I desire to read even more things about it!

  84. Normally I do not learn post on blogs, but I wish to say that this write-up very compelled me to try and do so! Your writing style has been surprised me. Thanks, very nice post.

  85. Hey! I’m at work browsing your blog from my new apple iphone! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the fantastic work!

  86. Ill do this if require to as much as I hope that is not too far off the track.

  87. I conceive this web site contains some rattling superb information for everyone : D.

  88. But wanna admit that this is handy, Thanks for taking your time to write this.

  89. I’ll appropriate away grasp your rss feed as I can

  90. I genuinely enjoy your internet page, nonetheless I

  91. I know this if off topic but I’m looking into starting my own blog and was wondering what all is required to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100 sure. Any tips or advice would be greatly appreciated. Kudos

  92. I gotta bookmark this site it seems extremely beneficial.

  93. Would really like to always get updated fantastic web site !.

  94. I just couldn’t depart your site prior to suggesting that I extremely enjoyed the regular info an individual offer for your visitors? Is gonna be back regularly in order to inspect new posts

发表评论

评论也有版权!

无觅相关文章插件