Website Designers R Us - Home
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.

URLs to local files should be formatted as:

file://<host>/<path>

For example:

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

If you're using a browser or some other program that can accept standard URLs, simply pass the correctly formatted local file path as demonstrated above.

To display a local file using a THTML component named HTML1:

HTML1.RequestDoc( 'file:///c|/my_pages/home.htm' );

If you're using C++Builder's THTML component:

HTML1->RequestDoc( "file:///c|/my_pages/home.htm" );
Return to Listing

Website Designer R Us has over 12 years of IT experience and a focus on custom website design, web development and web hosting services. Our professional web design services will give your business the look and feel needed to beat your competitors! Our website design services include; web design, website redesign, website maintenance, web development, flash animation, eCommerce, shopping carts, domains, web hosting, search engine optimization, graphic design, logo design, blog writing, script installations & much more!
 Home          ::             About Us          ::             Support            ::             Services            ::             Link Partners          ::             Contact

Copyright © 2006-2007 Website Designers R Us, a DOT Specialist Company. All rights reserved.