Reputation: 492
I have a web application(PHP) running on a server which hosts several DOCX Documents (MS Word documents)
I want the user (using my application) after choosing any document to be able to:
could anyone help me how to do that
ie.
Thanks in advance
Upvotes: 0
Views: 2798
Reputation: 33094
You can launch Office applications using Office URI Schemes. This would allow you to automatically open the file.
If you want to avoid downloading the file locally, you'll need to implement either WOPI or WebDav on your backend to handle the requests.
A simpler solution would be to use Microsoft Graph to push the file into OneDrive. Files in OneDrive have a WebUrl
property which wires up opening documents in Office for you.
Upvotes: 1