cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

IWebBrowser2 can´t completely read a web page

Solved!
Go to solution

IWebBrowser2 can´t completely read a web page

Hi!

 

I have been using the Rip Web Text LV 2012.vi example to read the following web page:

http://www.livescore.com/soccer/2016-08-22/

 

Unfortunately the embedded WebBrowser control doesn´t display the complete web page information. First a Script error ocurrs (See attachment) and eventually a message that "the browser is out of date" will be displayed in the embedded WebBrowser control (See attachment).

 

The Rip Web Text LV 2012.vi example can be found here:

https://decibel.ni.com/content/docs/DOC-3709

 

I appreciate if someone has a solution to this.

 

Thanks in advance.

 

Andy

 

 

0 Kudos
Message 1 of 3
(1,528 Views)
Solution
Accepted by topic author RealBjörkis
08-23-2016 04:20 AM

Re: IWebBrowser2 can´t completely read a web page

If the page you are accessing requires a certain version of IE (the control uses IE7 by default, I believe), there is a registry key change you can make to make the Web Browser Control use a more recent version of IE. See here for details: https://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version

 

Note that it applies to the executable running the WebBrowserControl - so that's either LabVIEW.exe in the development environment, or YourExecutableName.exe in the runtime engine.



Certified LabVIEW Architect (CLA), Certified LabVIEW Embedded Systems Developer (CLED) and Certified TestStand Developer (CTD)
MediaMongrels Ltd. - NI Alliance Partner | GDevCon :: 4-5th September 2018 :: Cambridge, UK
Message 2 of 3
(1,493 Views)

Re: IWebBrowser2 can´t completely read a web page

Hi Sam,

This was really helpful. Now I even can get the text that were not even accesible through the web pages own source. I discovered also that the process name is case sensible. It didn´t work with "labview.exe". It has to be written in the registry like you proposed "LabVIEW.exe". 

 

Thanks!

0 Kudos
Message 3 of 3
(1,487 Views)