Office URL format for CEF

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Office URL format for CEF

Postby miro » Mon Jul 26, 2021 4:30 am

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
miro
Techie
 
Posts: 29
Joined: Wed Oct 14, 2020 5:48 am

Re: Office URL format for CEF

Postby amaitland » Mon Jul 26, 2021 4:39 am

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.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: Office URL format for CEF

Postby miro » Mon Jul 26, 2021 6:54 am

Hi,
thank you for you answer, this is important information, we will implement our own office protocol handling in this case.

regards
miro
miro
Techie
 
Posts: 29
Joined: Wed Oct 14, 2020 5:48 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 27 guests