Witam
dogrzebałem się do kodu:
uses
ActiveX, MSHTML_TLB, SHDocVw_TLB,
ComCtrls, OleCtrls;
procedure TForm1.Button1Click(Sender: TObject);
var
HTMLDocument: IHTMLDocument2;
PersistFile: IPersistFile;
begin
HTMLDocument := WebBrowser1.Document as IHTMLDocument2;
PersistFile := HTMLDocument as IPersistFile;
PersistFile.Save(StringToOleStr('c:\SavedFile.html'), System.True);
end;
Ale niestety działać nie chce..krzaczy się przy uses
szukałem brakujących plików,ale ani *.dcu ani *.pas nie znalazlem...
Ktoś ma jakiś pomysł ?