DelphiFAQ Home Search:

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

 

comments2 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.


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! :)

 

 

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.
 
It seems that you are
from Washington, US .

Info/ Feedback on this

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:
photo Add a picture:

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.