Example Code

Get HTML Source string from URL using ActiveX and Microsoft Internet Explorer

Code and Documents

Attachment

This example uses the IWebBrowser2 ActiveX server provided by Microsoft Internet Explorer to navigate to a designated URL and return that Web page as an HTML source string. It should be useful for applications where you want to go to a particular Web page and only extract certain information (and not just display the page in LV using the Microsoft Web Browser ActiveX embedded object). This application returns the HTML source as a string, so you can parse the string for only the information you want.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors