Displaying local HTML files using the THTML component or other browser
Looking for a way to display local HTML files using the THTML component or other browser? This is possible, but be sure to format the URL to your local files correctly. You may want to display local HTML files if you're using HTML files to provide help for your program or if you wish to ship a snap-shot of your web site with your programs.
- file://<host>/<path>
- c:\my_pages\home.htm should be specified as:
- file:///c|/my_pages/home.htm
- To display a file on a network such as \\server_name\c_drive\my_pages\home.htm
- file://server_name/c_drive/my_pages/home.htm
HTML1.RequestDoc( 'file:///c|/my_pages/home.htm' );
Listing #1 : Delphi code. Download url_demo (0.19 KB).
HTML1->RequestDoc( "file:///c|/my_pages/home.htm" );
Listing #2 : C/C++ code. Download url_demo (0.19 KB).
0 comments:
Post a Comment