Solved

About HTML documents

Posted on 1999-01-09
8
190 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
 
LVL 5

Expert Comment

by:scrapdog
ID: 1355538
Make sure "shellapi" is in your uses clause if you want to use shellexecute.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filemaker 14 vs Delphi Embarcadero 7 185
Virtuailstring tree compare node issue 14 104
find a node in VST 2 63
Convert a string into a TDateTime 5 50
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

18 Experts available now in Live!

Get 1:1 Help Now