0
votes

I'm working on an Office word web add-in (not VSTO). I have opened a new / existing document from the current system or from a Sharepoint document library and side-loaded my taskpane addin and ribbon menu. Using a ribbon menu control, I should open a document from a sharepoint document library for editing and saving to some other location in Sharepoint. Is it possible in office.js?

  1. Shall I open the document using Javascript API (office.js)?
  2. If Point 1 is possible then can I open document from Sharepoint or one drive?
  3. Can I save document using office.js to specific location?
1

1 Answers

0
votes

Did you tried:

  1. using the graph API to access the files you need out of One Drive.
  2. use the context.application.createDocument().open() API to open the file in Word.
  3. Finally, after user updates, use the getFileAsync() method to get the base64 encoded docx and upload it back to one drive or wherever you need to?