Page 1 of 1

Office URL format for CEF

PostPosted: Mon Jul 26, 2021 4:30 am
by miro
Hi,
i try to open a url with ms office protocol, formatted like this: ms-word:ofe|u|http://servername/folder/demofile.docx.
in html:
Code: Select all
<a href="ms-word:ofe|u|http://servername/folder/demofile.docx.">My ms file</a>

This works in Chrome without any issues and in other browsers this work, like FF etc.
In both of this browser its a little popup shown decide what i will do, open or not etc. and i can save my choice for later and the popup doesn't show any more.
But in our implementation of CEF this doesn't work, and no error entries are in a log file written.

Do i miss some flags/switches/plugin before starting the the cef browser?

Thanks for any help.
miro

Re: Office URL format for CEF

PostPosted: Mon Jul 26, 2021 4:39 am
by amaitland
You'll need to handle opening the URL yourself as the built in OnProtocolExecution handler shows a blank page.

https://bitbucket.org/chromiumembedded/ ... t-57191176 has an example.

Re: Office URL format for CEF

PostPosted: Mon Jul 26, 2021 6:54 am
by miro
Hi,
thank you for you answer, this is important information, we will implement our own office protocol handling in this case.

regards
miro