摘要: HTMLDocumentClass hc = new HTMLDocumentClass(); IHTMLDocument2 doc2 = hc; doc2.write(content); doc2.close(); 阅读全文
posted @ 2010-01-02 22:34 新春 阅读(228) 评论(0) 推荐(0) 编辑
摘要: //提交窗体uses MSHTML;procedure TForm1.Button1Click(Sender: TObject);begin (((WebBrowser1.Document as IHTMLDocument2).body.all as IHTMLElementCollection).item('key', 0) as IHTMLInputElement ).value := 'z... 阅读全文
posted @ 2010-01-02 22:32 新春 阅读(190) 评论(0) 推荐(0) 编辑
摘要: object c=null;myWeb.Navigate("http://zhidao.baidu.com/",ref c,ref c,ref c,ref c);//...获取WebBroswer中的body代码mshtml.HTMLDocumentClass doc=(mshtml.HTMLDocumentClass)myWeb.Document;mshtml.HTMLBody body=(ms... 阅读全文
posted @ 2010-01-02 22:30 新春 阅读(637) 评论(0) 推荐(0) 编辑