【发布时间】:2020-04-23 17:29:11
【问题描述】:
我们使用 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 加载项支持它们)?
是否支持将加载项添加到现有选项卡?
提前致谢,
摩根
【问题讨论】:
-
您能分享一下这个插件的名称吗?我们可能会尝试看看问题是什么
-
@RaymondLu 当然,插件是 ThoughtRiver 合同预审:appsource.microsoft.com/en-us/product/office/…
-
它在我身边工作,它有一个显示为 ThoughtRiver 的新标签,我在 Windows 10 上,word 版本 2004 (build 12730)
-
@RaymondLu 问题出现在 Word 的批量许可 (MSO) 版本中,在最新版本 (~16.0.4939.1000) 和之前的所有版本中。您是否能够在该版本或类似版本上测试加载项?该加载项在 Office 365、Mac 等上运行良好。我不确定 Word build 12730 适用于哪个版本。
标签: office-js word-addins