//导入CDO组件
//导入ADODB组件
[STAThread]
static void Main(string[] args)
{
HtmlToMht( "http://www.csdn.net/ ", "k:\\csdn.mht ");
}
public static void HtmlToMht(string src, string dst)
{
CDO.Message msg = new CDO.MessageClass();
CDO.Configuration c = new CDO.ConfigurationClass();
msg.Configuration = c;
msg.CreateMHTMLBody(src, CDO.CdoMHTMLFlags.cdoSuppressNone, " ", " ");
ADODB.Stream stream = msg.GetStream();
stream.SaveToFile(dst, ADODB.SaveOptionsEnum.adSaveCreateOverWrite);
}