0

我使用此代码打开一个网站:

private void OpenBrowser(string url)
{
    object sender;
    WebBrowserDocumentCompletedEventArgs e;
    ie.DocumentComplete += (DWebBrowserEvents2_DocumentCompleteEventHandler) 
        new DWebBrowserEvents2_DocumentCompleteEventHandler(webBrowser1_DocumentCompleted);
        wb = (IWebBrowserApp) ie;
        wb.Visible = true;
        object o = null;
        wb.Navigate(url, ref o, ref o, ref o, ref o);

}

private void webBrowser1_DocumentCompleted(object sender, ref object e)
{

}

该网站已打开,但我想访问该网页的文档流以访问页面的内容。是否有可能做到这一点?

4

1 回答 1

0

您可以尝试按照此处所述访问文档对象模型:http: //msdn.microsoft.com/en-us/library/aa290341 (VS.71).aspx

于 2012-10-01T12:10:17.903 回答