LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DotNet Webview2 control embedded in labview

Solved!
Go to solution

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

Download All
0 Kudos
Message 1 of 13
(3,297 Views)
0 Kudos
Message 2 of 13
(3,242 Views)

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. 

0 Kudos
Message 3 of 13
(3,224 Views)

@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?

0 Kudos
Message 4 of 13
(3,203 Views)

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.

0 Kudos
Message 5 of 13
(3,193 Views)

@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.

0 Kudos
Message 6 of 13
(3,171 Views)

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.

0 Kudos
Message 7 of 13
(3,162 Views)

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.

0 Kudos
Message 8 of 13
(3,138 Views)

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.

0 Kudos
Message 9 of 13
(3,132 Views)
Solution
Accepted by LabVEIWcookie

LabVIEW 2020 Win10

 

mcduff_0-1665686485428.png

 

0 Kudos
Message 10 of 13
(3,104 Views)