嗨,我正在尝试使用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文件中进行更改时,选项卡不显示...有人能帮我这个忙吗?是否还有其他必须修改的文件?使用CustomUI编辑器,它工作得很好,但我不想使用这个工具。你认为使用它安全吗?
提前感谢!
发布于 2021-08-21 16:40:27
如果您需要将自定义设置绑定到文件而不是程序(即:仅对该文件可用,而不是每次打开程序时),则有一种更容易的方法来实现您所需的内容。
希望这就是你要找的。
https://stackoverflow.com/questions/50755068
复制相似问题