Hi,
>I have created an Internet.Application object and I want to get source of active page. How can I do that?
Sergey's reply is a clean way if you have control over the version of IE installed,
but will fail for users still at IE4. Also, there can be some "adjusting" of the HTML, done by the parsing engine of IE..
If you need the raw HTML, the safest way is UrlDownloadToFile or other direct calls through WinINet. Another approach is to ask the .document for IPersist* interfaces (works for IE4 as well!), they can persist to File and Memorystream.
In IE5 IPersist*.Save() didn't change the HTML, but that might have changed with the versions and the patches.
HTH
thomas
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement