From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening picture in ActiveX browser

When I use the ActiveX browser in LabVIEW to view an image file, the first iteration always returns a "Navigation to the webpage was canceled" message, and also pops up a window to download/save the image file. The second iteration is then successful. (See the attached example). This is quite annoying.

 

Is there anything to do with my computer browser setting? (I could open the URL fine on any browser directly, including IE, Firefox and Chrome)

 

Is there any way to prevent such "first trial failure" and disable the download/save window pop-up?

 

 

Thank you very much!

0 Kudos
Message 1 of 2
(1,101 Views)

I found out that there's no such problem when I opened the sample VI on a different computer, which has the same O/S (Windows 10) and same LabVIEW (2017 64-bit). So I think the problem is with the Internet Explorer setting. But the current IE on my computer is IE11, while the IWebBtowser2 and ActiveX are based on IE7 (I think). There' no way for me to change the settings of IE7 now. I can't even downgrade to IE7 because it's not supported by Windows 10.

 

I searched the NI website and the web, most of the suggestions are related to changing the Registry Keys, such as:

https://forums.ni.com/t5/LabVIEW/IWebBrowser2-can-t-completely-read-a-web-page/td-p/3338002?profile....

https://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version

https://9to5it.com/internet-explorer-disable-do-you-want-to-open-or-save-this-file-prompt/

https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-disable-the-while-files-from-the-inte...

...

 

I tried them but none of them worked.

 

BTW, the sample PNG file in the VI example I posted above seems no longer working. Here's the screen capture of the problem I'm facing (on some computers only. And as described earlier, this only appears on the first load. It's fine after the second load. But it's still quite annoying):

ActiveX browser issue.png

 

Thanks in advance for any solution or suggestion.

0 Kudos
Message 2 of 2
(1,020 Views)