【发布时间】:2022-01-13 08:18:16
【问题描述】:
当我启动一个新的 Excel Web 加载项时,默认情况下,空白项目有一个声明功能区的 MyAppName.xml 文件。
该声明在本机 Home Excel 选项卡下设置了自定义组和自定义控件。
我想要的是为我的插件创建一个单独的选项卡。 在文件项目本身中,有这些代码行:
<!-- Use OfficeTab to extend an existing Tab. Use CustomTab to create a new tab. -->
<OfficeTab id="TabHome">
所以我将OfficeTab 更改为CustomTab,但现在我在错误列表中得到消息:
The element 'CustomTab' in namespace 'http://schemas.microsoft.com/office/taskpaneappversionoverrides' has incomplete content. List of possible elements expected: 'Group, Label' in namespace 'http://schemas.microsoft.com/office/taskpaneappversionoverrides'.
您知道如何创建自定义标签吗?我做错了什么?
我正在使用: 微软 Visual Studio 企业版 2017 版本 15.2 (26430.12) 发布 VisualStudio.15.Release/15.2.0+26430.12
谢谢。
【问题讨论】: