Использую TWebBrowser.
В него загружаются данные. Мне надо считать, то что находится между <body></body> И никак не получается считать их.
Нашел нескольк вариантов на королевстве
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;
ругается на IPersistFile - говорит не знает такого типа.
в
Document := WB.Document as IHtmlDocument2;
if Document < > nil then
Memo1.Text := (Document.all.Item(NULL, 0) as IHTMLElement).OuterHTML;
говорит document is nil, хотя в самом браузере все отражается.
строка видна.