Hello
I have an app that uses text on a web page to guide the populating of a database. The company just changed that format of the page so now the old code no longer works. The old format had the information in a more compact form that had the basic layout intact and was easily parsed. The new format uses a lot more html code to make it more "robust". But in the process it's got a lot more clutter and the basic layout is gone when I extract the source.
So my question is this, before I write a bunch of code to resurrect the layout and remove all the clutter, is there a way in VB to extract text from a web page with the layout intact or at least without all the excess html code.
What I use now is:
Code:
Dim hElm As IHTMLElement
Dim intStart As Integer, intEnd As Integer, TheLength As Integer
Set hElm = brwWebBrowser.Document.All.tags("html").Item(0)
txtWebPagePull = hElm.innerHTML
This code is in the back end of a webbrowser control that the user navigates to the appropriate page and then runs to extract the text.
Thanks
David