MSHTML Get All HTML source from document

  • Thread starter Thread starter Joshua Ellul
  • Start date Start date
J

Joshua Ellul

Hi There,

Could anyone tell me how I can get all the source from a
mshtml.HTMLDocumentClass (or any other interface or class). I need the
source for the whole page and not just the body... The Body.OuterHTML
returns only the BODY source and not the whole page.

Thanks,

Joshua
 
Joshua Ellul said:
Hi There,

Could anyone tell me how I can get all the source from a
mshtml.HTMLDocumentClass (or any other interface or class). I need the
source for the whole page and not just the body... The Body.OuterHTML
returns only the BODY source and not the whole page.

You can use the IPersistStreamInit COM interface.

You might like to look at the code here:

http://www.itwriting.com/htmleditor/index.php

You can use the code in the utils class.

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top