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
 
Back
Top