带有任务窗格和内容的Office加载项? [英] Office add-in with both taskpane and content?

查看:204
本文介绍了带有任务窗格和内容的Office加载项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我整夜都在找这个,却找不到.

I spent all night looking this up and can't find it.

是否可以同时具有内容和任务窗格组件的Excel/Office加载项?

Is it possible to have an Excel/Office add-in that has both content and taskpane components?

真的,我想要一个内容应用程序,但是我想要功能区和任务窗格中的其他选项/按钮,这些选项/按钮将触发我的内容应用程序中的不同操作/更改.每当我尝试将VersionOverrides xml节点添加到内容应用程序的清单中时,它总是会失败.我的按钮均未显示.我可以找到的所有示例工作都具有名称空间[...]/taskpaneappversionoverrides.我尝试将其更改为[...]/contentappversionoverrides,但这也不起作用.

Really, I want a content app, but I want extra options/buttons in the ribbon and taskpane that will trigger different actions/changes in my content app. Whenever I try to add the VersionOverrides xml node to my manifest on a content app, it always fails. None of my buttons show up. All the examples I can find that work have the namespace [...]/taskpaneappversionoverrides. I've tried changing it to [...]/contentappversionoverrides but that doesn't work either.

我想要这的原因是因为插入内容应用程序比较困难,因为您必须转到插入">我的加载项">选择加载项".很难找到.但是,当他们安装了Taskpane加载项时,触发操作确实很容易.

The reason I want this is because inserting a content app is obtuse because you have to go to Insert > My Addins > Select add in. It is hard to find. But it is really easy to trigger actions when they've installed a taskpane add in.

   <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
   <Hosts>
     <Host xsi:type="Workbook">
       <DesktopFormFactor>
         <GetStarted>
         ... custom tab, groups, buttons, etc

推荐答案

无法从内容加载项启动任务窗格,并且仅支持任务窗格清单的命令.您的方案的另一种选择是拥有一个内容加载项,然后使用

It is not possible to launch a taskpane from a content add-in and commands are only supported for the taskpane manifest. An alternative for your scenario is to have a content add-in and then, to declutter some of the UI in your content add-in, use the dialog API (E.g. have a gear icon than then opens the dialog for more real state where you present more options).

长期而言,我认为我们应该有一个API,允许您在文档中插入Web对象.因此,该模型将仅具有一个附加"概念,该概念具有命令,然后使用API​​从命令中执行操作,包括将Web对象插入文档,显示对话框或窗格.

Longer term I'm thinking we should have an API to allow you to insert web objects on the document. So the model would be to just have a single "add-in" concept, that has commands, and then from commands you use APIs to do stuff, including inserting web objects into the document, displaying dialogs, or panes.

这篇关于带有任务窗格和内容的Office加载项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆