09-30-2021 09:44 PM
Thanks Greg, when you copied the .dlls into the LabVIEW folder, which .dlls did you copy or did you just paste the entire unzipped nuget package into the LabVIEW folder?
I have tried many different combinations but keep getting an error when pointing the .net control to the .dll.
10-15-2021 04:10 PM
I know there have been a lot of examples here, and I apologize for being dense, but I cannot get any web pages to load. It seems like the source never loads, not sure if it is a company firewall thing or not, any ideas?
Thanks
mcduff
10-15-2021 05:34 PM
Never mind, I am really dense. I got the nuget packages but forgot the runtime engine.
Thanks
Andrew
03-28-2022 10:17 PM
how did you solve the problem? i have the same problem and i cant fix it
Thank you
03-29-2022 08:25 PM
Hello
I followed all the steps, but it doesn't want to work. Property node "CoreWebView2" always returns null.
If I use the "WebView2.EnsureCoreWebView2Async" invoke node and then the "Wait()" node, I always get the same error "1172" "Error 1172 occurred in the error call method of the System.Threading.Tasks invoke node. Task.Wait , (System.DllNotFoundException: Unable to load DLL 'WebView2Loader.dll': The specified module cannot be found. (Exception from HRESULT: 0x8007007E))
Possible reasons):
LabVIEW: (Hex 0x494) A .NET exception occurred in an external assembly. For information about how to correct this error, copy the following exception (in bold) and search the Microsoft Developer Network (MSDN) Web site or the Internet for a possible explanation.
System.DllNotFoundException in webview2_2 (2).vi"
Thanks
10-22-2022 04:50 AM
Hi all,
thanks for your hints. I first had troubles gettings everything together, but now I think I've got it.
First, the VI provided by beavercreek did not work for me. I either got an empty page, forever waiting, or the DLLNotFound Exception.
So I modified the instantiation process so that the path of the native "Loader" dll is provided as well as the waiter for it to finish. Feel free to look into the modifed file attached.
Steps to get it to work:
10-22-2022 02:06 PM
I bundled my findings into a XControl you might test if you like
10-23-2022 07:43 AM
11-01-2022 11:06 AM
I have been playing around with WebView2 and Labview for a while but with very mixed results.
Spaghetticoder´s X-control worked immediately for me, and even better kept working.. I even can call js-code with the included property😁. Great work!
Currently I try to get the return value from my js-function, is there a way doing this?
11-07-2022 12:35 PM
I was able to figure that one out for myself, see my code attached. It can directly be used in Spaghetticoders X-control in the run JavaScript Method.
Thanks again for providing the X-control, I learned a lot😎