OfficeDev / office-js-docs-reference

Microsoft Office JavaScript API Reference
https://learn.microsoft.com/javascript/api/overview
MIT License
115 stars 66 forks source link

How to allow multiple users edit the content with word desktop application using office js #2040

Closed AshishSinghvi18 closed 1 month ago

AshishSinghvi18 commented 2 months ago

Hi ,

We have office js based add in available on MS store. We are helping companies to prepare their report with our reach features of versioning, workflow , commenting etc. Now we have one requirement when multiple users should work on same document simultaneously exactly as google docs or one drive document. We are opening document via method of loading content in base64 which turns any file as local file even , the file is available on one drive.

Is there any other method to open the document via URL with office js based add in, so that file reference will be maintained and multiple users can see the changes on real time basis.

Any help on this will be greatly appreciated.

Thank You

ElizabethSamuel-MSFT commented 2 months ago

@AshishSinghvi18 There's currently Word.Application.openDocument that was released in WordApi 1.6. It's limited to opening .docx files. The filePath parameter that you pass in is the absolute path of the .docx file. Word on the web only supports remote (cloud) locations, while Word on Windows, on Mac, and on iOS support local and remote locations. Example file paths are provided in the description of the API.

Can you give this a try and let us know if this helps with your scenario?

If you'd like non-docx files to be supported, post or upvote feature requests and suggestions at the Microsoft 365 Developer Platform Ideas Forum.

Thanks.

AshishSinghvi18 commented 1 month ago

Let me give a try to this method. This mean we can referred One Drive file with desktop word app and have corroborative nature as well.

microsoft-github-policy-service[bot] commented 1 month ago

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

microsoft-github-policy-service[bot] commented 1 month ago

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.