Recently I added some code to add a web extension to the word docx file. But once the change is done. its not loading the add in automatically. I am trying to achieve the part mentioned in this document
https://learn.microsoft.com/en-us/office/dev/add-ins/develop/automatically-open-a-task-pane-with-a-document#use-open-xml-to-tag-the-documentWebExtensionPart webExtensionPart = new WebExtensionPart(new PartName("/word/webextensions/webextension.xml"));
webExtensionPart.setPackage(opcPackage);
CTOsfWebExtension ctOsfWebExtension = new CTOsfWebExtension();
ctOsfWebExtension.setId("635BF0CD-42CC-4174-B8D2-6D375C9A759E");
CTOsfWebExtensionReference ctOsfWebExtensionReference = new CTOsfWebExtensionReference();
ctOsfWebExtensionReference.setId("WA104380862");
ctOsfWebExtensionReference.setVersion("1.5.0.0");
ctOsfWebExtensionReference.setStore("en-US");
ctOsfWebExtensionReference.setStoreType("OMEX");
ctOsfWebExtension.setReference(ctOsfWebExtensionReference);
CTOsfWebExtensionPropertyBag bag = new CTOsfWebExtensionPropertyBag();
CTOsfWebExtensionProperty prop = new CTOsfWebExtensionProperty();
prop.setName("Office.AutoShowTaskpaneWithDocument"); ...