none
How to integrate Ribbon costum XML Chema into .dotm template WORD 2016? RRS feed

  • Question

  • I tried todo it like Word 2010. After change  "_rels\.rels" I got an error "The file is not readable".

    I add this XML code into file :

    <Relationship Id="rID4" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml"/>

    From this manual: https://msdn.microsoft.com/ru-ru/library/office/gg597509(v=office.14).aspx"

    "Id="rID4" - Id is my id

    "Target="customUI/customUI.xml"/>"  target  is way to my UI XML File

    • Edited by A. Bukreev Monday, September 12, 2016 8:10 AM
    Monday, September 12, 2016 8:07 AM

Answers

  • >>After change  "_rels\.rels" I got an error "The file is not readable".

    How do you change/edit the files?

    I could successfully custom the .dotm following the steps in the document and I am using Office2016.

    To edit the files in the ZIP, I suggest you copy it out of the ZIP such as on Windows desktop, and use Editor(I am using Notepad) to modify the file and then Copy and Replace the original files in the .ZIP package.


    And the xml in _rels\.rels shows as follow.

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
    <Relationship Id="rID4" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml"/>
    <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="word/document.xml"/>
    </Relationships>

    Tuesday, September 13, 2016 1:44 AM
    Moderator
  • This is my mistake with Relationship Id="rId1" 

    several identical Ids

    Tuesday, September 13, 2016 5:11 AM

All replies

  • >>After change  "_rels\.rels" I got an error "The file is not readable".

    How do you change/edit the files?

    I could successfully custom the .dotm following the steps in the document and I am using Office2016.

    To edit the files in the ZIP, I suggest you copy it out of the ZIP such as on Windows desktop, and use Editor(I am using Notepad) to modify the file and then Copy and Replace the original files in the .ZIP package.


    And the xml in _rels\.rels shows as follow.

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
    <Relationship Id="rID4" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml"/>
    <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="word/document.xml"/>
    </Relationships>

    Tuesday, September 13, 2016 1:44 AM
    Moderator
  • This is my mistake with Relationship Id="rId1" 

    several identical Ids

    Tuesday, September 13, 2016 5:11 AM