您好我正在尝试使用xml代码自定义功能区,但新选项卡不会显示在选项卡上。这是customUI.xml的代码:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="customTab" label="Makra">
<group id="customGroup" label="AAA">
<button id="customButton1"
label="SOME LABEL"
imageMso="TableSharePointListsModifyColumnsAndSettings"
size="large"
onAction="BTNA" />
</group>
<group id="customGroup1" label="SOME LABEL 2">
<button id="customButton2"
label="AAA"
imageMso="CacheListData"
size="large"
onAction="BTNB" />
<button id="customButton3"
label="SOME LABEL"
imageMso="DatabaseMoveToSharePoint"
size="large"
onAction="BTNC" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
和.rels文件看起来像这样:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/><Relationship Id="someID" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml" /></Relationships>
当我通过添加customUI文件夹修改文件并在-rels文件中进行更改时,选项卡不会显示...有人可以帮我这个吗?还有其他文件必须是mofified吗?使用CustomUI Editor它运行良好,但我不想使用此工具。你认为使用它是否安全?
提前感谢!