Вниз
Скачать: CL | DM;

TWebBrowser   Найти похожие ветки 

← →
Dunkan ©   (2002-10-23 00:33) [0]

как в TWebBrowser сохранить исходник загруженного в него файла???


← →
AL2002 ©   (2002-10-23 00:36) [1]

var
HTMLDocument: IHTMLDocument2;
PersistFile: IPersistFile;
begin
...
HTMLDocument := WebBrowser1.Document as IHTMLDocument2;
PersistFile := HTMLDocument as IPersistFile;
PersistFile.Save(StringToOleStr("test.htm"), True);

while HTMLDocument.readyState <> "complete" do
Application.ProcessMessages;
...
end;


← →
AL2002 ©   (2002-10-23 00:54) [2]

procedure TForm1.WebBrowser1DocumentComplete(Sender: TObject;
const pDisp: IDispatch; var URL: OleVariant);
var I2: IHTMLDocument2;
begin
WebBrowser1.Document.QueryInterface(IHTMLDocument2, I2);
Memo1.Lines.Text:=I2.body.outerHTML;
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.023 c
3-11065
Марина
2002-10-15 10:34
2002.11.04
Memo-поля в DBGrid


14-11421
Николай Быков
2002-10-13 19:42
2002.11.04
Скажите мне в лицо: кем вы меня считаете?


14-11471
TAIPHOON
2002-10-11 20:31
2002.11.04
Win2000Server


1-11243
d_oleg
2002-10-25 13:26
2002.11.04
Checkbox в DBGrid е


14-11458
DeMoN-777
2002-10-16 01:56
2002.11.04
Autoexec.bat




   Наверх