Word Addin Doesn't Work On Word Online
Solution 1:
I am an engineer from MS working on Word Rich APIs.
And I have tried your script code in displayContents. As you said above, the script here would call body.clear() before loading the file (calling insertFileFromBase64). The body.clear() operation is not allowed in word online.
I think there might be some content which is not supported on word online, such as field range, table row content control.
If you can provide the docx file you're using, it would be better for us to help validate this opinion and find the root cause.
Solution 2:
Thanks for providing the docx file.
The 'Tab' before the content control in body is not supported and it makes the content control to be unsupported. Therefore, the body.clear() is not allowed since there is something unsupported inside.
I suggest you to delete the 'Tab' in local wordclient and upload the docx file online. Body.clear() would work well in this way.
PS: Paragraph-Center could be used to help align content control center.
Post a Comment for "Word Addin Doesn't Work On Word Online"