Napisalam prosta przegladarke internetowa posiada ona opcje:wstecz, do przodu, odswiez, stop. Chcialam do niej dodac mozliwosc zapisania strony html ale nie wiem jak zmodyfikowac kod ktory dziala pod Delphi 6 a pod Delphi 4 nie!
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;