none
Insert custom xml using word javascirpt api RRS feed

  • Question

  • hi,

    I tried to insert the package xml, which is in flatOPC format, using body.insertooxml as well i tried body.insertFileFromBase64,  

    above method did inserted the document, but it never inject custom xml [item1.xml ..] and binding, is there a way to inject the complete document at once instead of inserting custom xml separately, or is that i missing something while forming the flatOpc format.

    thanks

    Vimal 


    regards Vimal

    Wednesday, March 30, 2016 1:57 AM

Answers

  • got it thanks using 

     Office.context.document.customXmlParts.addAsync(data, onAddPart)


    regards Vimal

    • Proposed as answer by David_JunFeng Thursday, April 7, 2016 9:08 AM
    • Marked as answer by David_JunFeng Thursday, April 7, 2016 9:08 AM
    Wednesday, March 30, 2016 8:33 PM

All replies

  • got it thanks using 

     Office.context.document.customXmlParts.addAsync(data, onAddPart)


    regards Vimal

    • Proposed as answer by David_JunFeng Thursday, April 7, 2016 9:08 AM
    • Marked as answer by David_JunFeng Thursday, April 7, 2016 9:08 AM
    Wednesday, March 30, 2016 8:33 PM
  • Congratulation

    Thanks for you sharing your solution, that will help community member when they have same issue.

    Tuesday, April 5, 2016 9:10 AM