Solved

About HTML documents

Posted on 1999-01-09
8
192 Views
Last Modified: 2010-04-06
How can I show HTML document from my Delphi programs (I whant to read HTML document from Internet and saved to my hard disk). Can you send me source code?

Thank you!
0
Comment
Question by:milmil
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 20

Expert Comment

by:Madshi
ID: 1355535
To show a html file that is already saved on your harddisk, do this:
  ShellExecute(Application.Handle,'Open','c:\htmlPath\htmlFile.htm',nil,nil,SW_SHOWNORMAL);
To download a html file and save it on your harddisk, either use the components that are shipped with Delphi or look at these pages, there are some freeware components for this purpose, too:

Delphi Super Page:   http://nswt.tuwien.ac.at/delphi/index.htm
Torry's Page:          http://www.torry.ru/

Regards, Madshi.
0
 
LVL 5

Expert Comment

by:scrapdog
ID: 1355536
I'll say it again!!  The components at http://www.rtfm.be/fpiette/ are *da bomb*.
0
 

Author Comment

by:milmil
ID: 1355537
I have another problem! I entered ShellExecute command in my program but when I start it I get error message "Undeclared identifire ShellExecute". Can you help me to solve this problem?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 
LVL 5

Expert Comment

by:scrapdog
ID: 1355538
Make sure "shellapi" is in your uses clause if you want to use shellexecute.
0
 
LVL 5

Expert Comment

by:scrapdog
ID: 1355539
By the way, as Madshi said, the ShellExecute function will only display a html document already on your hard disk--it will not download from the internet.
0
 

Author Comment

by:milmil
ID: 1355540
It's Ok. But how can I display HTML ducument winth component THTML?
0
 
LVL 1

Accepted Solution

by:
frla0000 earned 50 total points
ID: 1355541
Hi,

There is a component that serves as a wrapper for MS Internet Explorer v 3 and higher. If you search through http://sunsite.icm.edu.pl/delphi/ and http://www.torry.ru you will most likely find it. I can't remember its name but it is freeware. A search for HTML/ Internet Explorer should help you. If you can't find it I can mail you a copy. Contact me on fredrik.larsson@larsson.tc.

Regards, Fredrik Larsson.
0
 
LVL 1

Expert Comment

by:frla0000
ID: 1355542
One more thing...
If you want to use Delphi's own component then check out the \samples\activex directory where there is a demo of a webbrowser. /Fredrik.
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.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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