Saving web pages as mht

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Von Shean

    #1

    Saving web pages as mht

    I tried out what you said..i used the following code
    CDO.MessageClas s message = new CDO.MessageClas s();

    message.CreateM HTMLBody("http://www.google.com/",

    CDO.CdoMHTMLFla gs.cdoSuppressN one, "", "");

    ADODB.Stream stream = message.GetStre am();

    stream.SaveToFi le("google.mht" ,
    ADODB.SaveOptio nsEnum.adSaveCr eateOverWrite);


    but i keep getting 'Interface not supported' at CreateMHTMLBody ...

    any clues to this........

    Regards



  • Peter Rilling

    #2
    Re: Saving web pages as mht

    Is this a compile or runtime error?

    "Von Shean" <vonshean@hotma il.com> wrote in message
    news:#d4xHpgoDH A.2244@TK2MSFTN GP12.phx.gbl...[color=blue]
    > I tried out what you said..i used the following code
    > CDO.MessageClas s message = new CDO.MessageClas s();
    >
    > message.CreateM HTMLBody("http://www.google.com/",
    >
    > CDO.CdoMHTMLFla gs.cdoSuppressN one, "", "");
    >
    > ADODB.Stream stream = message.GetStre am();
    >
    > stream.SaveToFi le("google.mht" ,
    > ADODB.SaveOptio nsEnum.adSaveCr eateOverWrite);
    >
    >
    > but i keep getting 'Interface not supported' at CreateMHTMLBody ...
    >
    > any clues to this........
    >
    > Regards
    >
    >
    >[/color]


    Comment

    • Von Shean

      #3
      Re: Saving web pages as mht

      It comes at runtime




      "Peter Rilling" <peter@nospam.r illing.net> wrote in message
      news:uCoEjzioDH A.2424@TK2MSFTN GP10.phx.gbl...[color=blue]
      > Is this a compile or runtime error?
      >
      > "Von Shean" <vonshean@hotma il.com> wrote in message
      > news:#d4xHpgoDH A.2244@TK2MSFTN GP12.phx.gbl...[color=green]
      > > I tried out what you said..i used the following code
      > > CDO.MessageClas s message = new CDO.MessageClas s();
      > >
      > > message.CreateM HTMLBody("http://www.google.com/",
      > >
      > > CDO.CdoMHTMLFla gs.cdoSuppressN one, "", "");
      > >
      > > ADODB.Stream stream = message.GetStre am();
      > >
      > > stream.SaveToFi le("google.mht" ,
      > > ADODB.SaveOptio nsEnum.adSaveCr eateOverWrite);
      > >
      > >
      > > but i keep getting 'Interface not supported' at CreateMHTMLBody ...
      > >
      > > any clues to this........
      > >
      > > Regards
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...