web
You’re offline. This is a read only version of the page.
close


Posted Wed, 02 Jul 2025 10:20:23 GMT by Baptiste Mille

Hello,

I'm encountering an issue while integrating "DocuWare Platform WebClient" into a WebView2 iframe as part of the development of a Windows Forms (.NET) application.

The purpose of this application is to provide a desktop solution that allows users to launch DocuWare without using a traditional web browser.

Overall, the integration of DocuWare works well, but I am experiencing a problem with the connection to the Desktop Apps.

For example, when I right-click a file and choose Edit, I receive the following message: "Please restart Desktop Apps and try again."

The Desktop Apps are indeed running, since this action works correctly when performed from a regular browser.

Below is my WebView initialization function:



        public async Task InitializeWebViewAsync(string docuWareUrl)
        {
            var env = await CoreWebView2Environment.CreateAsync();
            await WebView.EnsureCoreWebView2Async(env);

            var core = WebView.CoreWebView2;

            core.Settings.IsScriptEnabled               = true;
            core.Settings.IsWebMessageEnabled           = true;
            core.Settings.AreDefaultContextMenusEnabled = true;
            core.Settings.AreDevToolsEnabled            = true;

            core.NewWindowRequested += Core_NewWindowRequested;

            WebView.Source = new Uri(docuWareUrl);
        }


        private void Core_NewWindowRequested(object sender, CoreWebView2NewWindowRequestedEventArgs e)
        {
            var uri = e.Uri;
            if (uri.StartsWith("dwdesktop:", StringComparison.OrdinalIgnoreCase))
            {
                MessageBox.Show($"Open DocuWare Desktop : {uri}",
                                "DocuWare", MessageBoxButtons.OK, MessageBoxIcon.Information);
                try
                {
                    System.Diagnostics.Process.Start(uri);
                    e.Handled = true; 
                }
                catch (Exception ex)
                {
                    MessageBox.Show($"Unable to start DocuWare Desktop : {ex.Message}",
                                    "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }

 

Do you have any ideas on how to resolve this issue?

Thank you in advance.



 
Posted Thu, 10 Jul 2025 00:00:30 GMT by Matthias Wieland Senior Director Support EMEA
Dear Baptiste Mille! It looks like the Community cannot answer your question. That's why we have opened a Support Request with the Number SR-266482-J4V0Y for you. A Software Support Specialist will contact you directly to follow up. We will update this thread with the solution as soon as we have resolved the Support Request. With best regards, DocuWare Support Team

You must be signed in to post in this forum.