try:IHTMLDocument2 HTMLDocument =(IHTMLDocument2) axWebBrowser1.Document;
HTMLDocument.Body.InnerHtml = "xxxx";

解决方案 »

  1.   

    IHTMLDocument2 htmlDocument = (IHTMLDocument2)axWebBrowser1.Document;
    IHTMLElement body = (IHTMLElement)htmlDocument.body;body.innerHTML = "<html><body>hello world</body></html>";http://blog.monstuff.com/archives/000052.html
      

  2.   

    http://www.csharphelp.com/archives/archive146.html
      

  3.   

    IHTMLDocument2 htmlDocument = (IHTMLDocument2)wb.Document;
    IHTMLElement body = (IHTMLElement)htmlDocument.body; string WebResult = body.innerHTML; //WebResult   就是你想要的 其实孟子E章大哥说的很对,我只是跟贴,不用给我分哈 我可没有骗分得意思,呵呵
      

  4.   

    太乱了 再贴一个
    IHTMLDocument2 htmlDocument = (IHTMLDocument2)wb.Document;
    IHTMLElement body = (IHTMLElement)htmlDocument.body;string WebResult = body.innerHTML;
      

  5.   

    你直接把sql server里面的内容保存成html文件,然后后WebBroswer控件打开就是了
      

  6.   

    谢谢各位。
    IHTMLDocument2 htmlDocument = (IHTMLDocument2)axWebBrowser1.Document;
    IHTMLElement body = (IHTMLElement)htmlDocument.body;
    body.innerHTML = "<html><body>hello world</body></html>";IHTMLElement body = (IHTMLElement)htmlDocument.body;这个句子出现错误:
    未处理的“System.NullReferenceException”类型的异常出现在 WebBro.exe 中。其他信息: 未将对象引用设置到对象的实例。
      

  7.   

    在你代码之前让axWebBrowser1浏览about:blank
      

  8.   

    原来没有
    object o = null;
    axWebBrowser1.Navigate("http://google.com", ref o, ref o, ref o, ref o);
    所以