Opening Sharepoint files in I-frame using WOPI

%3CLINGO-SUB%20id%3D%22lingo-sub-552053%22%20slang%3D%22en-US%22%3EOpening%20Sharepoint%20files%20in%20I-frame%20using%20WOPI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-552053%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20All%2C%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22postcell%20post-layout--right%22%3E%3CDIV%20class%3D%22post-text%22%3E%3CP%3EWe%20are%20integrating%20office%20online%20with%20our%20application%20to%20open%20Microsoft%20files.%20We%20are%20using%20a%20WOPI%20protocol%20for%20it.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3EThese%20are%20files%20hosted%20on%20SharePoint.%3CBR%20%2F%3EFor%20Share%20point%20files%20to%20open%20them%20with%20office%20online%20through%20our%20application(in%20an%20I-frame)%2C%20we%20have%20to%20perform%20the%20following%20steps%20-%3CBR%20%2F%3E1.the%20control%20comes%20to%20WOPI%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwopi.readthedocs.io%2Fprojects%2Fwopirest%2Fen%2Flatest%2Ffiles%2FCheckFileInfo.html%23checkfileinfo%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EgetFileInformationCall%3C%2FA%3E%3CBR%20%2F%3E2.we%20need%20to%20hit%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fdriveitem-get-content%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMicrosoft%20graph%20API%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20download%20the%20file%3CBR%20%2F%3E3.%20we%20read%20the%20file%20and%20return%20the%20file%20information%20from%20rest%20call.%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20all%20steps%20take%20time%20and%20little%20fragile.%20So%20does%20anyone%20knows%20if%20there%20is%20some%20way%20to%20redirect%20WOPI%20rest%20calls%20to%20get%20SharePoint%20files%3F%20Or%20is%20there%20another%20way%20to%20optimize%20these%20steps%3F%20Or%20am%20I%20doing%20it%20all%20wrong%20and%20there%20is%20any%20better%20way%20to%20achieve(opening%20SharePoint%20files%20in%20I-frame)%20the%20same%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-552053%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ewopi%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2228831%22%20slang%3D%22en-US%22%3ERe%3A%20Opening%20Sharepoint%20files%20in%20I-frame%20using%20WOPI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2228831%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F336679%22%20target%3D%22_blank%22%3E%40GandhaliAmbike%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20did%20you%20evolved%20in%20this%20case%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Visitor

Hello All, 

We are integrating office online with our application to open Microsoft files. We are using a WOPI protocol for it. 
These are files hosted on SharePoint.
For Share point files to open them with office online through our application(in an I-frame), we have to perform the following steps -
1.the control comes to WOPI getFileInformationCall
2.we need to hit the Microsoft graph API to download the file
3. we read the file and return the file information from rest call.

This all steps take time and little fragile. So does anyone knows if there is some way to redirect WOPI rest calls to get SharePoint files? Or is there another way to optimize these steps? Or am I doing it all wrong and there is any better way to achieve(opening SharePoint files in I-frame) the same?

 

1 Reply

@GandhaliAmbike 

 

Hi, did you evolved in this case?

 

Best Regards!