Print option missing in WOPIFrame Embed URL for Excel files in SharePoint Document Library

%3CLINGO-SUB%20id%3D%22lingo-sub-812357%22%20slang%3D%22en-US%22%3EPrint%20option%20missing%20in%20WOPIFrame%20Embed%20URL%20for%20Excel%20files%20in%20SharePoint%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-812357%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20a%20SharePoint%20developer%20and%20trying%20to%20embed%20Excel%20and%20Word%20files%20in%20a%20Provider%20Hosted%20application%20using%20WOPIFrame%20(OWA)%20and%20it%20is%20SharePoint%20online%20environment.%20Here%20is%20what%20I%20am%20trying%20to%20do%20%3A%20Excel%20and%20Word%20files%20are%20in%20a%20SharePoint%20Document%20Library%20and%20from%20my%20code%20I%20am%20getting%20the%20WPOIFrame%20embed%20URL%20through%20CSOM.%20Then%20loading%20that%20URL%20in%20an%20iframe%20inside%20my%20MVC%20application's%20View%20to%20display%20Office%20files%20inside%20web%20page.%3C%2FP%3E%3CP%3EURL%20for%20Excel%20looks%20something%20like%20this%20-%3CEM%3E%26nbsp%3Bhttps%3A%2F%2F%7Bweb%20absolute%20url%7D%2F_layouts%2F15%2FWopiFrame.aspx%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%3Fsourcedoc%3D%7Bdocument%20guid%7D%26amp%3Baction%3Dembedview%3C%2FEM%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEverything%20is%20fine%20except%20that%20%3CSTRONG%3EPrint%3C%2FSTRONG%3Eoption%20is%20not%20available%20in%20the%20%3CEM%3Eembedview%3C%2FEM%3Efor%20%3CSTRONG%3EExcel%3C%2FSTRONG%3Edocuments%20but%20works%20fine%20for%20%3CSTRONG%3EWord%3C%2FSTRONG%3Edocuments.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20to%20include%20Print%20in%20Excel%20%3CEM%3Eembedview%3C%2FEM%3Eis%20much%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi All,

 

I am a SharePoint developer and trying to embed Excel and Word files in a Provider Hosted application using WOPIFrame (OWA) and it is SharePoint online environment. Here is what I am trying to do : Excel and Word files are in a SharePoint Document Library and from my code I am getting the WPOIFrame embed URL through CSOM. Then loading that URL in an iframe inside my MVC application's View to display Office files inside web page.

URL for Excel looks something like this - https://{web absolute url}/_layouts/15/WopiFrame.aspx
?sourcedoc={document guid}&action=embedview 

 

Everything is fine except that Print option is not available in the embedview for Excel documents but works fine for Word documents.

 

Any help to include Print in Excel embedview is much appreciated.

0 Replies