Microsoft Office registers several protocol handlers such as ms-word
, ms-excel
, etc. Limited documentation is available here. I am attempting to use the Excel protocol handler to open a document passing it a file uri and not having much luck. I can make the operation work with an http/https uri without issue, however in my case the document resides on a network file share.
This works if the document is on a web server:
ms-excel:ofv|u|http://someserver/somefolder/document.xlsx
This does not work:
ms-excel:ofv|u|file://someserver/somefolder/document.xlsx
I receive the following error:
The action couldn't be performed because Office doesn't recognize the command it was given.
Is there any way to make these protocol handlers work with a file URI?