10-12-2022 01:39 PM
Hi everyone,
I want to embedded the dotnet webview2 control in the labview, I followed this thread (https://forums.ni.com/t5/LabVIEW/How-to-use-WebView2-control-in-LabView/td-p/4133679) to download all the dependency for webview2 in dotnet(dll, runtime) and tried to run in both csharp and labview. However, the demo code runs well in csharp code but can not display anything in labview, can some body give me some guide or help for this?
thank your so much!
the attaches are the screenshots shown the program in csharp and labview
I have already tried labview 2021 32bit and 64 bit, my operation system is windows 11
Solved! Go to Solution.
10-13-2022 03:54 AM
Why not post a VI?
10-13-2022 08:35 AM
Hi wiebe,
Thanks for your reply, I'm using the vi provided by this NI example link: https://forums.ni.com/t5/Example-Code/WebView2-SDK/ta-p/4237975
and also following the instruction provided by there. But finally can not get any thing shown in the webview2 control in labview.
10-13-2022 09:46 AM - edited 10-13-2022 09:49 AM
@LabVEIWcookie wrote:
Hi wiebe,
Thanks for your reply, I'm using the vi provided by this NI example link: https://forums.ni.com/t5/Example-Code/WebView2-SDK/ta-p/4237975
and also following the instruction provided by there. But finally can not get any thing shown in the webview2 control in labview.
i guess then the right question would have been why post images of that VI 😁. (I should have opened the link 🙄)
Is there a benefit from using WebView2 control over a standard webbrowser control?
10-13-2022 10:18 AM
wiebe@CARYA wrote:Is there a benefit from using WebView2 control over a standard webbrowser control?
I have had issues with the WebView2 control also. I got it to work on one computer but not another, even though I followed all the instructions. Not sure what is going on.
The benefit is a modern web browser. The old one is based on IE6 or something like that; it cannot display modern pages, and has multiple security issues, among other problems.
10-13-2022 11:31 AM
@mcduff wrote:
wiebe@CARYA wrote:Is there a benefit from using WebView2 control over a standard webbrowser control?
I have had issues with the WebView2 control also. I got it to work on one computer but not another, even though I followed all the instructions. Not sure what is going on.
The benefit is a modern web browser. The old one is based on IE6 or something like that; it cannot display modern pages, and has multiple security issues, among other problems.
No errors?
Even if I'd install and try this, chances are it will simply work.
10-13-2022 11:34 AM - edited 10-13-2022 11:35 AM
wiebe@CARYA wrote:
@mcduff wrote:
wiebe@CARYA wrote:Is there a benefit from using WebView2 control over a standard webbrowser control?
I have had issues with the WebView2 control also. I got it to work on one computer but not another, even though I followed all the instructions. Not sure what is going on.
The benefit is a modern web browser. The old one is based on IE6 or something like that; it cannot display modern pages, and has multiple security issues, among other problems.
No errors?
Even if I'd install and try this, chances are it will simply work.
Well, like the OP, I followed the instructions and got it to work on one computer. Same instructions different computer, no dice. Web page never loads. Once again, not sure what dependency issue is causing this problem.
EDIT: I have a 50% simply work success.
10-13-2022 12:25 PM - edited 10-13-2022 12:26 PM
Hi mcduff,
Thanks for your sharing. Could you tell me the operating system and labview version you used when the Webview2 worked? Thank you in advance.
10-13-2022 12:32 PM
Because we want to cooperate with our IT team to embedded our CRM software made by web technology into our labview program. Using old IE based browser can not correctly display many element in new technology.
10-13-2022 01:43 PM
LabVIEW 2020 Win10