Solved

About HTML documents

Posted on 1999-01-09
8
188 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
Comment Utility
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
Comment Utility
I'll say it again!!  The components at http://www.rtfm.be/fpiette/ are *da bomb*.
0
 

Author Comment

by:milmil
Comment Utility
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
 
LVL 5

Expert Comment

by:scrapdog
Comment Utility
Make sure "shellapi" is in your uses clause if you want to use shellexecute.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 5

Expert Comment

by:scrapdog
Comment Utility
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
Comment Utility
It's Ok. But how can I display HTML ducument winth component THTML?
0
 
LVL 1

Accepted Solution

by:
frla0000 earned 50 total points
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now