Solved

HTML File Viewer?

Posted on 1999-01-26
12
179 Views
Last Modified: 2010-04-06
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?
0
Comment
Question by:bcrotaz
  • 3
  • 2
  • 2
  • +3
12 Comments
 
LVL 13

Expert Comment

by:Mirkwood
Comment Utility
Just pass the filename I guess.
file://c:\mypath\myfile.html

Otherwise try the webbrowser control as shipped with IE4
0
 
LVL 20

Expert Comment

by:Madshi
Comment Utility
Or try this
  file:///c:/path/file.htm(l)
or
  file:///c|/path/file.htm(l)   (NetScape syntax)

Regards, Madshi.
0
 
LVL 7

Expert Comment

by:BlackMan
Comment Utility
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
 
LVL 1

Expert Comment

by:Oli2
Comment Utility
use THTML Component and then try this:
HTML1.RequestDoc ( 'file://localhost/c|/test.html' );

Greetings, Oli
0
 
LVL 1

Expert Comment

by:Oli2
Comment Utility
my suggestion above works fine in Delphi3, don't know about Delphi4
Greetings, Oli
0
 
LVL 3

Expert Comment

by:williams2
Comment Utility
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 7

Expert Comment

by:BlackMan
Comment Utility
Hmm, Williams, you answer has a certain degree of simularity with my comment :-(
0
 
LVL 3

Expert Comment

by:williams2
Comment Utility
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
 
LVL 1

Author Comment

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

Expert Comment

by:BlackMan
Comment Utility
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
 
LVL 13

Accepted Solution

by:
Mirkwood earned 100 total points
Comment Utility
Thankx, see comments below.
0
 
LVL 1

Author Comment

by:bcrotaz
Comment Utility
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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 159
Newbie Thread Programming 1 116
Delphi - replicating a form 8 57
Strange behavior when a form is closed 6 42
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 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

10 Experts available now in Live!

Get 1:1 Help Now