设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 2051|回复: 0

自功能

[复制链接]
发表于 2016-3-6 20:06:59 | 显示全部楼层 |阅读模式
我想在WORD中自定义一个选项卡,代码如下,但怎么搞都不能显示选项卡,请哪位高手指点一下,问题出在哪里?
customui.xml中的代码:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">

    <ribbon startFromScratch="false">
  
        <tabs>
   
            <tab id="NewTab" visible="true" label="美化工具" insertAfterMso="TabHome" keytip="A">
   
                <group id="Group1" visible="true" label="QQ:514734691">
     
                    <menu id="menu" label="VBE风格 &#13;" imageMso="ChartTypeOtherInsertGallery"  size="large"  itemSize="large">
      
                        <button id="button1" label="关键字高亮"  imageMso="SmartArtChangeColorsGallery"  onAction="GL" />
      
                        <button id="button2" label="注释风格"  imageMso="OutlineWeightGallery"  onAction="ZS" />
      
                        <button id="button3" label="一键设置"  imageMso="GroupSmartArtQuickStyles"  onAction="YJ" />
     
                        <button id="button4" label="还原"  imageMso="FormatPainter"  onAction="HY" />
      
                        <button id="button5" label="关于"  imageMso="ObjectsSelect"  onAction="GY" />  
   
                    </menu>
   
                </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="rId8" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.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="word/document.xml"/>
</Relationships>



[Content_Types].xml中的代码:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Override PartName="/CustomUI/customUI.xml" ContentType="application/xml"/>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.ms-word.document.macroEnabled.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/stylesWithEffects.xml" ContentType="application/vnd.ms-word.stylesWithEffects+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-3-29 13:43 , Processed in 0.103914 second(s), 25 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表