var Doc: IHTMLDocument2; begin Doc := Webbrowser.Document as IHTMLDocument2; if doc <> nil then Doc.execCommand('Print',false,''); Doc := Nil; end;