HTML File Viewer?

I'm looking for a component to display HTML files.  NOT one to get them from a server as http.  Anyone know of one?  I need it to display in a panel on my existing form - I can't spawn a process.  It seems that the standard Delphi4 viewer can only retrieve from a server - is this correct, and if not, how do you make it display a local file?
LVL 1
bcrotazAsked:
Who is Participating?
 
MirkwoodConnect With a Mentor Commented:
Thankx, see comments below.
0
 
MirkwoodCommented:
Just pass the filename I guess.
file://c:\mypath\myfile.html

Otherwise try the webbrowser control as shipped with IE4
0
 
MadshiCommented:
Or try this
  file:///c:/path/file.htm(l)
or
  file:///c|/path/file.htm(l)   (NetScape syntax)

Regards, Madshi.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
BlackManCommented:
Or look at www.pbear.com, they have a great HTML viever component... There are a proffesional version ($129) and a Lite version for free..
0
 
Oli2Commented:
use THTML Component and then try this:
HTML1.RequestDoc ( 'file://localhost/c|/test.html' );

Greetings, Oli
0
 
Oli2Commented:
my suggestion above works fine in Delphi3, don't know about Delphi4
Greetings, Oli
0
 
williams2Commented:
Your requestet component can be found at http://www.pbear.com/htmlviewers.html

The software is shareware, but if you do not use gif images, you won't have any nackscreen showing at runtime.

Regards,
Williams
0
 
BlackManCommented:
Hmm, Williams, you answer has a certain degree of simularity with my comment :-(
0
 
williams2Commented:
Oh sorry, Blackman, I didn't see that. It was just that I have already bought a license from the author Dave Baldwin to do the job, I had a certain need for it a couple of years ago.

I guess you have already been there :-)

bcrotaz: Please remove my answer.

cheers,
Williams
0
 
bcrotazAuthor Commented:
Blackman - post your answer...


Actually, I found a newsgroup answer which was even better - use IE4 as an ActiveX plugin.  You just import Microsoft Internet Controls, and you get a panel component with the full functionality of IE4.
0
 
BlackManCommented:
Hmm, I guess IE4 was Mirkwood's bet, so if that's the way you do it, I think the points belongs to him..
You can interface both IE3 and IE4, the problem is if the user doesn't have IE installed, as you are not allowed to distribute the IE OCX alone, the user has to install IE to make your program work..
0
 
bcrotazAuthor Commented:
Actually, this is an embedded control app, with my exe running as the shell, hence no other windows allowed - so I can install anything I like - wonderful feeling, that!
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.