About HTML documents

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!
milmilAsked:
Who is Participating?
 
frla0000Commented:
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
 
MadshiCommented:
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
 
scrapdogCommented:
I'll say it again!!  The components at http://www.rtfm.be/fpiette/ are *da bomb*.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
milmilAuthor Commented:
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
 
scrapdogCommented:
Make sure "shellapi" is in your uses clause if you want to use shellexecute.
0
 
scrapdogCommented:
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
 
milmilAuthor Commented:
It's Ok. But how can I display HTML ducument winth component THTML?
0
 
frla0000Commented:
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
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.

All Courses

From novice to tech pro — start learning today.