我使用此代码打开网站:
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)
{
}
网站已经打开但我想访问该网页的文档流以获取访问页面的内容。有可能这样做吗?
答案 0 :(得分:0)
您可以尝试按照此处所述访问文档对象模型:http://msdn.microsoft.com/en-us/library/aa290341(VS.71).aspx