• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

TWEbBrowser (IE4) object

What is TWEbBrowser (IE4) object. Where can I find it and can it redirect a download from IE4 to my application?
0
npatel
Asked:
npatel
1 Solution
 
freterCommented:
The web browser object is an active x control you can use to mimic a web browser in your own apps. It is delivered with IE3 and IE4, so there is no need to download it from anywhere. But: you'll have to import it with the ActiveX import utility that can be reached via Delphi's main menu.

If you are in spite of sources, just ask.

rgds, Freter
0
 
BrumbelowMCommented:
Go to Install ActiveX components and install Microsoft Internet Controls.  It will then appear in your ActiveX tab.  

To go to a url use this.

function GotoURL( TheURL : String) : Boolean;
var
  url,flags,targetframename,postdata,headers: OLEVariant;
begin
  try
    WebBrowser1.SetFocus;
    url:= TheURL;
    flags:=0;
    targetframename:= '_self';
    headers:='';
    postdata:='';
    WebBrowser1.Navigate(url,flags,targetframename,postdata,headers);
  except
    Result := False;
  end;
  Result := True;
end;

Just pass it the URL you want to go to.

There are a ton of functions like

WebBrowser1.Back
WebBrowser1.Forward
WebBrowser1.Refresh

to name a few...

You can not direct a download from IE4 to your application, but you can do the opposite.

Let me know if you need more info...

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now