2

I'm about to implement my own WOPI host for viewing and editing Office documents on iOS and Android, but I was wondering if there are any existing solutions out there already?

Can I use SharePoint or OneDrive documents for example?

stonecompass
  • 547
  • 9
  • 27

1 Answers1

6

Here's my little list of existing implementations:

Another list of resources can be found here.

The best resource, however, is the official documentation which has been refreshed not too long ago:

Can I use SharePoint or OneDrive documents for example?

Yes, you can...that's all up to your WOPI host implementation. You can perhaps gain some inspiration here. This WOPI host has been designed with modularity in mind. You can easily extend it by implementing several interfaces (mainly the IWopiStorageProvider) and configuring the application to use your assembly as a default "storage provider".

rocky
  • 7,506
  • 3
  • 33
  • 48
  • you seem to be the only person I can find that has a real good handle on this. If the WOPI host is, say, SharePoint, and the WOPI Client is Office Online Server, can I somehow use that client (Office Online) in an iFrame within our application? We want to provide our clients who have the software a way to collaborate on documents within our application. – Steve Jan 17 '22 at 19:38
  • 1
    Yeah, it is possible (or at least used to be a couple of years ago with Office Web Apps). I've been a part of a project where the word/excel file editing functionality for a 3rd party app was achieved by uploading the file to SharePoint and generating an edit link for OWA+SP. This approach was cumbersome, to say the least, and it had many limitations and drawbacks. But it was cheap at that time. This motivated me to work on a proper WOPI implementation in my spare time (and leave that company :D) – rocky Jan 18 '22 at 07:43
  • 1
    If you plan to utilize just OOS/OWA from an existing SP deployment and communicate with it directly via WOPI, that's fine. But I'd strongly recommend against the approach described above. – rocky Jan 18 '22 at 07:44
  • Thanks for answering quickly! It sounds like we'd have to do something funky, then, unless maybe we wrote our own WOPI server for our application? (docs are stored in database). We are also considering just allowing them to create the document from a good HTML Editor then exporting from there, but it's dealing with the existing documents that becomes a problem. Imports of any kind to HTML are far from perfect. – Steve Jan 18 '22 at 15:09