Search code examples
ms-officems-wopioffice-online-server

Use Office Online Server to provide document editing from within a web application


We'd like our clients to be able to, from our software, open documents and collaborate on them in the course approving them, then releasing them. We'd like to provide that using Office Online Server from a window within our software (using WOPI protocol). So if I understand correctly, we'd need our software to be able to specify the document, open it in the Office Online Server window/iframe and allow the collaboration to take place there. Then the client would save the document, and our software would take over from there. Can something like this be done? From my research, @rocky (user:1332034) is the person that seems most likely to be able to answer these questions.


Solution

  • Yes, this is exactly what the WOPI protocol can do for you. The architecture, in your case, should look something like this:

    WOPI app architecture

    The WopiHost.Discovery and WopiHost.Url can help you with generating the URLs. WopiHost.Core can help with the WOPI protocol communication.

    Diagram link