MSHTML Get All HTML source from document

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joshua Ellul

    MSHTML Get All HTML source from document

    Hi There,

    Could anyone tell me how I can get all the source from a
    mshtml.HTMLDocu mentClass (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


  • Tim Anderson

    #2
    Re: MSHTML Get All HTML source from document

    "Joshua Ellul" <jellul@onvol.n et> wrote in message
    news:Ouj%23HYoH EHA.3896@TK2MSF TNGP11.phx.gbl. ..[color=blue]
    > Hi There,
    >
    > Could anyone tell me how I can get all the source from a
    > mshtml.HTMLDocu mentClass (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.[/color]

    You can use the IPersistStreamI nit COM interface.

    You might like to look at the code here:



    You can use the code in the utils class.

    Tim




    Comment

    Working...