1.
((IHTMLDocument3)axWebBrowser.Document).documentElement.outerHTML2.
UCOMIPersistFile pFile = (UCOMIPersistFile)axWebBrowser.Document;
pFile.Save("D:\source.htm",false);
read the file3
IPersistStreamInit StmInit =(IPersistStreamInit)axWebBrowser.Document;
StmInit.Save(Stm,0);
这个Stm是一个UCOMIStream,你需要通过API CreateStreamOnHGlobal来创建它并且建议写一个包装对其操作的类以方便使用只有第二个方法获取的源代码最为干净,相信IE的查看源文件功能便是用第二个方法实现的