我们使用Word JavaScript API开发了Word加载项,并且在Windows 10上使用Word 2016 MSO(16.0.4939.1000)的批量许可的所有用户都无法在顶部工具栏中看到该加载项。
用户可以从AppSource安装加载项并启动它。但是,该加载项应该显示在其自己的自定义标签中,但事实并非如此。每次启动Word时,用户都必须从“我的加载项”菜单中重新添加插件。
下面是我认为是manifest.xml
文件的相关部分:
<Requirements>
<Sets DefaultMinVersion="1.1">
<Set Name="WordApi" MinVersion="1.1" />
</Sets>
</Requirements>
<CustomTab id="TabXX">
<Group id="XX.Group1">
<Label resid="XX.Group1Label" />
<Icon>
<!-- Images removed for simplicity -->
</Icon>
<Control xsi:type="Button" id="XX.TaskpaneButton">
<Label resid="XX.TaskpaneButton.Label" />
<Supertip>
<Title resid="XX.TaskpaneButton.Label" />
<Description resid="XX.TaskpaneButton.Tooltip" />
</Supertip>
<Icon>
<!-- Images removed for simplicity -->
</Icon>
<Action xsi:type="ShowTaskpane">
<TaskpaneId>XXPanel</TaskpaneId>
<SourceLocation resid="XX.Taskpane.Url" />
</Action>
</Control>
<Control xsi:type="Button" id="XX.SignOutButton">
<Label resid="XX.SignOutButton.Label" />
<Supertip>
<Title resid="XX.SignOutButton.Label" />
<Description resid="XX.SignOutButton.Tooltip" />
</Supertip>
<Icon>
<!-- Images removed for simplicity -->
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>logout</FunctionName>
</Action>
</Control>
</Group>
<Label resid="XX.CustomTab.Label" />
</CustomTab>
<Resources>
<bt:Images>
<!-- Images removed for simplicity -->
</bt:Images>
<bt:Urls>
<bt:Url id="XX.Taskpane.Url" DefaultValue="https://wordapp.xx.com/index.html?v=1.0.0.0" />
<bt:Url id="XX.SignOutButton.Url" DefaultValue="https://wordapp.xx.com/#/app/logout" />
<bt:Url id="XX.GetStarted.LearnMoreUrl" DefaultValue="https://www.xx.com/" />
<bt:Url id="XX.FunctionFile.Url" DefaultValue="https://wordapp.xx.com/function-file/function-file.html" />
</bt:Urls>
<bt:ShortStrings>
<bt:String id="XX.TaskpaneButton.Label" DefaultValue="XX" />
<bt:String id="XX.Group1Label" DefaultValue="ThoughtRiver" />
<bt:String id="XX.CustomTab.Label" DefaultValue="XX" />
<bt:String id="XX.GetStarted.Title" DefaultValue="Get started with XX!" />
<bt:String id="XX.SignOutButton.Label" DefaultValue="Sign out" />
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="XX.TaskpaneButton.Tooltip" DefaultValue="Click to load the add-in" />
<bt:String id="XX.GetStarted.Description" DefaultValue="The add-in was loaded successfully. Go to the XX tab and click the 'Show Taskpane' button to get started." />
<bt:String id="XX.SignOutButton.Tooltip" DefaultValue="Click to Sign Out" />
</bt:LongStrings>
</Resources>
上述配置有什么问题吗?
Word 2016的批量许可中的AppSource存储中的加载项是否支持自定义选项卡(我知道COM加载项支持这些自定义选项卡?
是否支持将加载项添加到现有选项卡?
谢谢,
摩根
Word 2016不支持加载项命令。
您可以使用isSetSupport来检查加载项命令要求集。如果不支持,请在任务窗格上创建相关按钮作为解决方法