Hide Menu (Download a copy / Export to pdf) from WopiFrame2.aspx

%3CLINGO-SUB%20id%3D%22lingo-sub-1631133%22%20slang%3D%22en-US%22%3EHide%20Menu%20(Download%20a%20copy%20%2F%20Export%20to%20pdf)%20from%20WopiFrame2.aspx%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1631133%22%20slang%3D%22en-US%22%3E%3CP%3EHello.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOur%20online%20app%20uses%20Sharepoint%20Online%20services%20to%20store%20documents%20and%20present%20them%20embedded%20inside%20page.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETypically%20embedded%20viewer%20link%20to%20document%20is%20looking%20like%20this%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3Ehttps%3A%2F%2F%3CTENANT%3E.sharepoint.com%2Fsites%2F%3CSITE%3E%2F%3CPAGE%3E%2F_layouts%2F15%2FWopiFrame2.aspx%3Fsourcedoc%3D%3CPATH%20to%3D%22%22%20document%3D%22%22%20in%3D%22%22%20a%3D%22%22%20library%3D%22%22%3E%26amp%3Bfile%3D%3CFILE%20name%3D%22%22%3E%26amp%3Baction%3Dinteractivepreview%3C%2FFILE%3E%3C%2FPATH%3E%3C%2FPAGE%3E%3C%2FSITE%3E%3C%2FTENANT%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECustomer%20complains%20that%20user%20has%20the%20download%20functionality%20(see%20below).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22siarheik_0-1599129999785.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F216273i5CF89E59DFF032B5%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22siarheik_0-1599129999785.png%22%20alt%3D%22siarheik_0-1599129999785.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20to%20remove%20those%20buttons%20by%20a%20WopiFrame2.aspx%20argument%20or%20any%20other%20way%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1631133%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1979954%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Menu%20(Download%20a%20copy%20%2F%20Export%20to%20pdf)%20from%20WopiFrame2.aspx%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1979954%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F611257%22%20target%3D%22_blank%22%3E%40siarheik%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fsharepoint%2Fen-US%2F4151672a-f9bb-463a-a5b2-5cb247135795%2Fdisablehide-quotprint-to-pdfquotquotdownload-a-copyquotquotembded-informationquot%3Fforum%3Dsharepointdevelopment%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EI%20found%20this%20and%20thought%20it%20might%20help%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1983618%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20Menu%20(Download%20a%20copy%20%2F%20Export%20to%20pdf)%20from%20WopiFrame2.aspx%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1983618%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F898980%22%20target%3D%22_blank%22%3E%40Snafusofauq%3C%2FA%3E%26nbsp%3BIt%20is%20not%20relevant%20for%20Sharepoint%20Online.%20Sharepoint%20online%20is%20not%20controlled%20by%20our%20organization%20directly%20(I'm%20not%20a%20part%20of%20Microsoft%20yet)%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello.

 

Our online app uses Sharepoint Online services to store documents and present them embedded inside page.

 

Typically embedded viewer link to document is looking like this

https://<tenant>.sharepoint.com/sites/<site>/<page>/_layouts/15/WopiFrame2.aspx?sourcedoc=<path to document in a library>&file=<file name>&action=interactivepreview

 

Customer complains that user has the download functionality (see below).

 

siarheik_0-1599129999785.png

Is there any way to remove those buttons by a WopiFrame2.aspx argument or any other way?

 

 

2 Replies

@Snafusofauq It is not relevant for Sharepoint Online. Sharepoint online is not controlled by our organization directly (I'm not a part of Microsoft yet)