This site is temporarily down. Please come back. Open a local HTML file with Delphi 4's HTML component
DelphiFAQ Home Search:

Open a local HTML file with Delphi 4's HTML component

 

comments6 comments. Current rating: 4 stars (1 votes). Leave comments and/ or rate it.

The following snippet shows what does not work and how to do it instead:

begin
  // this one does not work:
  HTML1.RequestDoc('file://C:\help.htm');

  // these two will do the trick:
  HTML1.RequestDoc('file:///C:\help.htm');
  HTML1.RequestDoc('file://localhost/C:\help.htm');
end.


Content-type: text/html

Comments:

2006-05-17, 01:22:22
anonymous from Iran  
where html1
2008-01-17, 12:32:33
Peter from Portugal  
rating
What type of variable are HTML1

Thanks! :)
2011-09-30, 05:57:39
anonymous  
this should work:
HTML1.RequestDoc('file:///C:/help.htm');
2012-09-14, 03:42:44
anonymous from Korea (R)  
[spammer 61.105.174.6]
2012-11-12, 05:31:45
anonymous from United States  

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: