Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, July 10, 2018 7:33 AM
Hi All,
As we know MS office online viewer is used to show office document in browser, we need to append client public document url into the src parameter of viewer url, may i use Web/Rest api in src parameter to show our file into browser?
As we don't want our filepath to expose to the outside of world, we want to make it secure, so is there any way to use web/rest api to show document in browser?
**Note: **we will expose API publicly.
MS office online viewer URL below:
https://view.officeapps.live.com/op/embed.aspx?src=document.docx
All replies (1)
Wednesday, July 11, 2018 9:38 AM
Hi Amit,
Thanks for posting in MSDN forum.
This forum is for developers discussing developing issue about Office automation and add-in.
AFAIK, we can use the Web Application Open Platform Interface (WOPI) protocol to integrate Office Online with your application. And this protocol using the REST API instead of URL parameters to interact with Office Online.
And if you have any problem developing with WOPI, you can post it in Office Protocols forum.
Hope it is helpful.
Regards & Fei
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].