X xkdcc Unregistered / Unconfirmed GUEST, unregistred user! 2005-04-04 #1 我用了webbrowse组件,怎样才能获得当前浏览页的html源文件呢? 还有怎样才能下载一个指定页为.html文档?我听说有什么另存为功能啊? 高手请指教啊
X xkdcc Unregistered / Unconfirmed GUEST, unregistred user! 2005-04-04 #2 我用了webbrowse组件,怎样才能获得当前浏览页的html源文件呢? 还有怎样才能下载一个指定页为.html文档?我听说有什么另存为功能啊? 高手请指教啊
X xkdcc Unregistered / Unconfirmed GUEST, unregistred user! 2005-04-04 #3 aaaaa.... 没人理我啊! 问题简单点就是:怎么下载webbrowser当前浏览的html文件呢呢呢呢? 帮帮忙嘛.....
C coolfishs Unregistered / Unconfirmed GUEST, unregistred user! 2005-04-04 #4 procedure TForm1.Button1Click(Sender: TObject); {浏览时下载网页} var Url:string; Memory:TMemoryStream; begin Url := 'http://www.tencent.com/index_e.shtml'; WebBrowser1.Navigate(URL); Memory := TMemoryStream.Create; idHttp1.Get(URL,Memory); Memory.SaveToFile('C:/MyFile.HTML'); Memory.Free; end;
procedure TForm1.Button1Click(Sender: TObject); {浏览时下载网页} var Url:string; Memory:TMemoryStream; begin Url := 'http://www.tencent.com/index_e.shtml'; WebBrowser1.Navigate(URL); Memory := TMemoryStream.Create; idHttp1.Get(URL,Memory); Memory.SaveToFile('C:/MyFile.HTML'); Memory.Free; end;