I am trying to open an existing document (the original file) from within a Word add-in. I do not access to the original file locally, only a url. I have tried:
var newDoc = context.application.createDocument(base64Image)
newDoc.open()
context.sync()
If the base64Image is a .docx file type, it will open a new document as an image (not editable), otherwise I'm getting an error: Uncaught (in promise) RichApi.Error: GeneralException.
When I don't pass in an argument into createDocument(), it successfully opens a blank document.
I've placed the base64Image into the current document using insertFileFromBase64 and insertInlinePictureFromBase64, so I know the base64Image file is supported.
Any other ideas how to open an editable document?