how to save a web page as text in vb6

Posted on 2009-02-17
Last Modified: 2012-05-06
Ok I have a page open using mie.Document.All etc. in a browser instance in my VB6 software, after sending some data to the page, it loads some results via JS, which don't appear in the innerHTML otherwise I would get the data I need from that.

The only way I can get the data doing manually would be to either select all copy and paste or save the page as .txt ... and then read the text

My challenge is to do that programatically, can anyone point me in the right direction.
Question by:nlsoft
    LVL 13

    Expert Comment


    Author Comment

    No not working as a solution for me.


    Accepted Solution

    I resolved the problem ... the source code for the page is changed via the MIE.DOCUMENT reference ... so that was the solution (well I didnt need to code something) ...

    I converted the mie.document.documentelement.innerhtml to a string, and saved it, and was able to find the data in the file, now I can get the data by looking for the relevant tags in the innerhtml.

    Thanks for trying to help me.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now