Mirror

Open a local HTML file with HTML component (Views: 32)


Problem/Question/Abstract:

Open a local HTML file with HTML component

Answer:

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.

<< Back to main page