question

nagarjunaaravapalli-2066 avatar image
0 Votes"
nagarjunaaravapalli-2066 asked nagarjunaaravapalli-2066 commented

Open sharepoint word file in users desktop app by clicking on direct hyperlink to word document

In our web application, we have direct link to word document in SharePoint site. So when user clicks on the hyperlink, I would like to open that in users local desktop word application. But I am unable to achieve it. I have tried other work arounds like, when user clicks on the document in the sharepoint site, able to open in word desktop app. But it is still two clicks for user to reach the word desktop app.

Is there any way if we pass any parameters in the url saying open in local desktop app?

Thanks

office-sharepoint-onlineoffice-word-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CaseyYangMSFT-4714 avatar image
0 Votes"
CaseyYangMSFT-4714 answered nagarjunaaravapalli-2066 commented

Hi @nagarjunaaravapalli-2066,

You could use the following url as a workaround:

 ms-word:ofe|u|https://xxx.sharepoint.com/sites/xxx/xxx/xx.docx

Per my test, you could open this word document in local desktop word application directly when you use IE. But you will get "A website wants to open this application." prompte when you open this url with chrome or edge.


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you so much. It worked for me. I have question on the parameters though. May I know what is the meaning of parameter 'u' here. Also are there any other parameters in the place of 'u' we can pass and it would be helpful?

Thanks,
Nagarjuna

0 Votes 0 ·

Hi @nagarjunaaravapalli-2066,

This "u" means Command argument descriptor. Here is a documentation from Microsoft for you reference: Office URI Schemes


1 Vote 1 ·

Thank you for providing the documentation.

0 Votes 0 ·