Solved

About HTML documents

Posted on 1999-01-09
8
193 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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