Hello,
How to embed the chrome browser in the application ?
Thanks in advance.
Not sure if something is available directly with Google Chrome, but there is this Open Source component based on the Chromium engine that could be embeded.
I tried that CefSharp a few months ago. It worked, but it also made the application quite unstable. The application crashed occasionally and I didn't find a reliable workaround for that. Maybe the latest version works better, might be worth a try.
I decided to wait for the upcoming (Chromium-based) WebView2 control from Microsoft:
docs.microsoft.com/.../webview2
There is not an official WinForms version of WebView2 available yet, but it should be coming in the next few months.
Hello,
Can you guyz guide me on how should I start with CefSharp ?
Or someone can give me a sample code for this will be good.
>> There is not an official WinForms version of WebView2 available yet, but it should be coming in the next few months
The new webview2 is not likely to be more stable than CefSharp. It is brand new and will have a long way to go to work out the kinks. Whereas CefSharp is being maintained regularly and is quite mature:
www.nuget.org/.../CefSharp.Common
I am also looking forward to WebView2, but for other reasons.
Unless you investigate the underlying reasons for the instability, it would be optimistic to count on WebView2 being the solution. Internally they will use a lot of the same implementation. I suspect the instability is related to the interop with the rest of your application.
ohk
Hello
Can anyone give me guidance on how I can try cefsharp with OpenEdge.
I checked the help online there, but its tor C # and .Net.
Please guide me if anyone has experienced cefsharp with OpenEdge.
Hello,
Can someone guide me on how to go with cefsharp for OpenEdge ?
Or Can we open Chrome browser directly from OpenEdge like Internet explorer ?
I've tried to get CefSharp to work,but de .NET in the assemblies was no problem.
However, there we more .DLL which are started, and they need to be in your path somewhere. So in the 'Controls' folder or in the 'Openedge' dir did not work for me.
I tried some more and finally found DotNetbrowser which i';ve got working in a .NET form. However, this costs money.
Keep in mind - every control i've found is getting into this problem - Chromium is multi threaded. So call from Progress to or better calls back from Javascript are difficult... Every time I got Progress errormessages that call it from a multi threaded process is not possible.
Also, much controls use reflection and/or generics. This is not something Progress is good in (not supported that is).
[quote user="rdhaan2"]
I've tried to get CefSharp to work,but de .NET in the assemblies was no problem.
However, there we more .DLL which are started, and they need to be in your path somewhere. So in the 'Controls' folder or in the 'Openedge' dir did not work for me.
I tried some more and finally found DotNetbrowser which i';ve got working in a .NET form. However, this costs money.
Keep in mind - every control i've found is getting into this problem - Chromium is multi threaded. So call from Progress to or better calls back from Javascript are difficult... Every time I got Progress errormessages that call it from a multi threaded process is not possible.
Also, much controls use reflection and/or generics. This is not something Progress is good in (not supported that is).
[/quote]
You will need to write a custom DLL that will act as intermediary between Progress ABL and CEFSharp. This DLL will listen to CEFSharp, then it should use Invoke to fire an event that the ABL code is subscribed to.
CefSharp is hard enough to use from a c# developer's perspective because it interop's with native libraries. It will be that much harder from OpenEdge/ABL since that will involve another layer of additional interop. If you want this bad enough I would suggest developing your the main application window in c#/.Net (winforms or wpf).
I happen to be playing with the packaging/deployment of CefSharp redistributables today. That is a big pain too. (It is what you get to look forward to after you finally have everything working on your own development machine.)
We are also now at the deployment stage and having some challenges to get all the files install correctly so CefSharp is able to find the files. The CefSharp error message about not finding all resources is not very helpful. In development we got it working much easier.
Can you let me know how should i start CefSharp with OpenEdge in development ?
Hope this helps? Might be some errors in there still so read carefully and don't trust it blindly....
If someone knows a easier way to get the packages downloaded, please tell!
Will try all these steps.
Thanks
Hello,
I have installed everything but now I am not clear on the below steps -
Add (if not already added) the "CefSharp" to the C:\src\assemblies\assemblies.config.
Add the three dll-files to one of the Developer Studio project "Referenced Assemblies"
Can you explain it in more details.
As adding these DLL throw below error -
Error
---------------------------
BadImageFormatException for assembly: E:\cefsharp\CefSharp.Core.dll
Could not load file or assembly 'file:///E:\cefsharp\CefSharp.Core.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.