Link to home
Start Free TrialLog in
Avatar of Kristao
Kristao

asked on

open html file

Hi Delphi gurus :)

I'm creating project wich need help system. I got few help creating programs but programms sucks. So i'm creating one html file wich holds all needed help to work with my program. How can i run my  help.html file with Internet Explorer ?

Exsample:

procedure TForm1.Button1Click(Sender: TObject);
begin
  >>>>>>>>>>>>>Internet Explorer runs and show my help.html file<<<<<<<<<<
end;

Thanks for help...

ASKER CERTIFIED SOLUTION
Avatar of delphized
delphized

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mohammed Nasman
Hello
  Or use TWebBrowser components that came with Delphi, it will allow you to show the Html pages from inside your application instead of open IE

  You can use it easily, in ur code just call


     WebBrowser1.NavigateTo('urhelpfile.html');
Yeah i would use a built in browser, much more professional, besides you have complete control and can make it look like what ever you want.

Like mnasman said just use but not "navigateto" but just "navigate"

  WebBrowser1.Navigate('helpfilefilepath.html');

Regards,
Hypoviax
Avatar of hanson04
hanson04

Hi, for me the easiest way to do this is:
    u wil need:
       _A Memo
       _A Button
       _A Html browser (http://www.appcontrols.com/download.html)(app control)
                                (http://www.appcontrols.com/download/appcontrolsd7.zip)
                                (these are very nice components about 15 to 20)

after u have installed these components find the "achtmlviewer" component and put the html code in the memo and the event would be

html1.HTML := memo1.Lines;
html1.Refresh;

Thats it
Avatar of Kristao

ASKER

So its inposible to run IE to open that file ? yeah i know about that hmtl component