Apr 29 2022
12:30 PM
- last edited on
Feb 01 2023
12:34 PM
by
TechCommunityAP
Apr 29 2022
12:30 PM
- last edited on
Feb 01 2023
12:34 PM
by
TechCommunityAP
https://docs.microsoft.com/en-us/office/client-developer/office-uri-schemes describes how a URI can be used to open documents from a URL (e.g., OneDrive) in Office.
I'd expect this to work in an Office Add-in which it partly did but not on macOS, tested with PowerPoint for Mac 16.61 (22042403) on macOS 12.3.
I tried it with these links
<a href="ms-powerpoint:ofe%7Cu%7Chttp://download.microsoft.com/download/6/4/5/6457fca2-83d4-4cfa-8a28-d247dcbdd464%2FUnit%20Testing.pptx">Open</a>
<input type="button" value="Test" onclick="window.location.replace('ms-powerpoint:ofe%7Cu%7Chttp://download.microsoft.com/download/6/4/5/6457fca2-83d4-4cfa-8a28-d247dcbdd464%2FUnit%20Testing.pptx'); return false;" />
These work in an Office Add-in on Windows and also in Safari. But they have no effect when used in an Office Add-in on macOS.