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...

LVL 1
KristaoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

delphizedCommented:
uses ShellApi

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute(0,'open','yourhtmlfilenameherewithpath','','',SW_SHOWNORMAL);
end;

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mohammed NasmanSoftware DeveloperCommented:
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');
0
HypoviaxCommented:
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
0
hanson04Commented:
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
0
KristaoAuthor Commented:
So its inposible to run IE to open that file ? yeah i know about that hmtl component
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.