怎么在winform中的axWebBrowser中显示特定格式的网页.这是个例子:
<html>
<head>
<style type="text/css">
body {font-family:Verdana,Sans-serif; font-size:10pt; margin:0; padding:0; background:#fff; color:#000}
td,form {font-family:Verdana,Sans-serif; font-size:10pt;}
A {color:#66c; text-decoration: none;}
A.black {color:#000; text-decoration: none;}
A:hover, A:active {text-decoration: underline;}
</style>
<base href="http://news.sina.com.cn/iframe/o/allnews/input/index.htm">
</head>
<body>
<table width="100%" bgcolor="#cccccc" cellpadding="0" cellspacing="0" border="0">
<tr><td>
<a href="http://news.sina.com.cn">
<img align="left" border="0" src="http://image2.sina.com.cn/dy/sina_news626.gif" alt="新闻中心"></a>
&nbsp;<a href="http://news.sina.com.cn/iframe/o/allnews/input/index.htm" class="black"><b>Feed: </b>新闻中心-新闻要闻</a><br/>
&nbsp;<a href="http://news.sina.com.cn/c/2006-02-13/10378192126s.shtml" class="black"><b>Title: </b>我国乙肝防治规划优先保护新生儿和重点人群</a>
</td><td align="right">
<b>Author: </b>WWW.SINA.COM.CN&nbsp;<br/>
</td></tr>
<tr bgcolor="#666666" height="1"><td colspan="2"></td></tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2" border="0"><tr><td>中新网2月13日电 中国卫生部近日发布《2006-2010年全国乙型病毒性肝炎防治规划》,以科学、规范和有效开展全国乙型病毒性肝炎防治工作。
  《防治规划》提出,采取免疫预防为主、防治兼顾的综合措施,优先保护新生儿和重点人群,有效遏制乙肝的高流行状态,至2010年使中国.... </td></tr></table>
</body>
</html>我想在axWebBrowser也这样显示,里面的链接和文字是要当参数传进页面的.根据不同的参数显示不同的内容.该如何做???请高手执教

解决方案 »

  1.   

    VB.NET : AxWebBrowser1.Navigate("http:\\www.sohu.com")
    用IE怎传的?你就怎么传呗。
      

  2.   

    private void Navigate(AxSHDocVw.AxWebBrowser browser, string strHTMLSource) { 
        UCOMIStream stream = null; 
        ComSupport.CreateStreamOnHGlobal(Marshal.StringToHGlobalAnsi(xml), 1, 
    out stream); 
        int pointerSize = Marshal.SizeOf(typeof(Int64)); 
        IntPtr pointer = Marshal.AllocHGlobal(pointerSize); 
        stream.Seek(0, 2, pointer); 
        ulong size = (ulong)Marshal.ReadInt64(pointer); 
        Marshal.FreeHGlobal(pointer); 
        if (size != (ulong)strHTMLSource.Length + 1) 
            stream.SetSize(strHTMLSource.Length + 1); 
        stream.Seek(0,0,IntPtr.Zero); 
        IPersistStreamInit persistentStreamInit = 
    (IPersistStreamInit)browser.Document; 
        if (persistentStreamInit != null) { 
            persistentStreamInit.InitNew(); 
            persistentStreamInit.Load(stream); 
            persistentStreamInit = null; 
        } 
        stream = null; }