設為首頁收藏本站Access中國

Office中國論壇/Access中國論壇

 找回密碼
 注冊

QQ登錄

只需一步,快速開始

返回列表 發(fā)新帖
查看: 2942|回復: 0
打印 上一主題 下一主題

自功能

[復制鏈接]
跳轉到指定樓層
1#
發(fā)表于 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好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享分享 分享淘帖 訂閱訂閱
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則

QQ|站長郵箱|小黑屋|手機版|Office中國/Access中國 ( 粵ICP備10043721號-1 )  

GMT+8, 2025-7-17 00:34 , Processed in 0.088752 second(s), 24 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表