Solved

open html file

Posted on 2003-12-08
5
309 Views
Last Modified: 2010-04-05
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
Comment
Question by:Kristao
5 Comments
 
LVL 5

Accepted Solution

by:
delphized earned 125 total points
ID: 9896001
uses ShellApi

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

0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 9897662
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
 
LVL 5

Expert Comment

by:Hypoviax
ID: 9900694
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
 

Expert Comment

by:hanson04
ID: 9907729
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
 
LVL 1

Author Comment

by:Kristao
ID: 9915850
So its inposible to run IE to open that file ? yeah i know about that hmtl component
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question