I have a tab pane app that needs to access the custom properties of the current MS Office document, which can be Word or Excel.
There seems to be no built in way of doing this with the Office JavaScript API, but in Word, I use the Office.context.document.getFileAsync() method to return the entire file. I can then unzip it, read in the custom.xml file, and navigate through the XML to get the custom properties.
However, the Office.context.document.getFileAsync() is not available in Excel. Is there another way to read the custom properties?