LAN Web TCP Delphi

unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, OleCtrls, SHDocVw, StdCtrls;
type
TForm1 = class(TForm)
btnGoTo: TButton;
WebBrowser1: TWebBrowser;
btnPrint: TButton;
procedure btnGoToClick(Sender: TObject);
procedure btnPrintClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.btnGoToClick(Sender: TObject);
//gose to website
var
Flags: OLEVariant;
begin
Flags:=0;
WebBrowser1.Navigate(WideString('http://www.borland.com'), Flags, Flags, Flags,
Flags);
end;
procedure TForm1.btnPrintClick(Sender: TObject);
//prints website
var
I, O: OleVariant;
begin
I := 0;
WebBrowser1.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, I, O);
end;
end.