How to get content of Web WORD (One Drive) and paste into desktop WORD using Office Js API

Viewed 48

I'm developing an addin to call all content of a WORD file stored in my one drive to my desktop WORD file. I need to know that is it possible and if yes then please refer me a related link because I'm new in addin development.

Thanks

1 Answers

Would you please try the steps below? 1, try to get the base64 content of the web word into the temp file Refer to the "Add the JavaScript to get the document" section in the sample. 2, in the desktop word, using the Body.insertFileFromBase64 to insert the base64 content from the web word into the desktop word. Here's the details about the API.

Related