We have a web application that uses the Office URI scheme to open documents in Word for the user from their browser. For example:
ms-word:ofe|u|file://NetworkServer/Share/DocumentToOpen.docx
In our development and testing, this solution has worked perfectly for us with Office 365, Office 2019 and Office 2016.
However, when we set up a web app for a client that uses Office 2016, they reported that Office was giving them an error when trying to open documents this way:
"This action couldn't be performed because Office doesn't recognize the command it was given"
We attempted repairing the Office installation (as we've seen suggested) with no success.
We were able to produce the same error message ourselves when using an old machine with an Office 2013 installation.
To try to remove browser and Windows configurations from the equation, we confirmed that running the Office protocolhandler.exe directly through command prompt like this also produces the same error message for the non-working installs:
"C:\Program Files\Microsoft Office\Root\Office16\protocolhandler.exe" "ms-word:ofe|u|file://NetworkServer/Share/DocumentToOpen.docx"
Running that same command (with appropriate paths) on our machines with Office 365, 2019 and 2016 all work as expected and the document opens in Word successfully.
A difference that we're seeing with our (working) installs of Office 2016 vs. the client's (non-working) install is the versioning:
Our working Office 2016 version:
Microsoft Word 2016 MSO (Version 2205 Build 16.0.15225.20028) 32-bit
Client's non-working Office 2016 version:
Microsoft Word 2016 (16.0.5317.1000) MSO (16.0.5278.1000) 64-bit
Does anyone have any thoughts on why the command would be functioning on one install of Office 2016, but not another?
Thanks!