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

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

0
Kristao
Asked:
Kristao
1 Solution
 
delphizedCommented:
uses ShellApi

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

0
 
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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