Open office documents from SharePoint to Client Apps


If you want to open any office document in client side app pragmatically then here is the solution :

<script type="text/javascript" language="javascript">
window.location.href = "ms-excel:ofe|u|https://mytenant.sharepoint.com/MyLib/MyExcel.xlsx";
</script>

You can use MS Office apps URL scheme names to open any office document in client app from SharePoint.

List of MS Office apps URL scheme names:


  • ms-word:
  • ms-powerpoint:
  • ms-excel:
  • ms-visio:
  • ms-access:
  • ms-project:
  • ms-publisher:
  • ms-spd:
  • ms-infopath:
To know more about URL scheme, Click Here.

Comments

Popular Posts

SharePoint Interview Questions and Answers

Download Infopath Form Templates

How to get current logged user information using JavaScript ?

Steps to set Form based authentication (FBA) for SharePoint 2010

SharePoint Interview Questions and Answers II

Get List Items - JavaScript

Change Language for current user with JSOM in SharePoint Online

Cross Site List Rollup Web Part for SharePoint 2010

Hide Recently Modified Items

SharePoint 2010 CSS Chart