08-15-2008 01:46 PM
I'm looking at the webbrowser example in CVI and trying to figure out if there is a way to get a string the html of the page I navigate to. I don't see any methods in the activex control that would allow me to do this. I can't use datasocket because I have to go through some secure login pages before getting to the page I'd like to parse.
Thanks
08-18-2008 11:14 AM
Hello hillb,
Thank you for posting on the NI Discussion Forums. I believe that you can still use the DataSocket functions to read the html code of the page, but you must format the URL to the page a little differently when it is password protected. Check out this link for information on how to format the URL with a username and password embedded in it. The article is mainly written for LabVIEW users, but formatting the URL should work well in the LabWindows/CVI environment as well.
08-18-2008 11:24 AM
08-19-2008 01:12 PM
If the document loaded in the webbrowser activex control is an HTML document, then the attached code (PrintPageBody function) can be used to get the body of the HTML. Look under "MSHTML Reference" in msdn.microsoft.com for more information.