LoadFromFile Method


Applies to

THtmlViewer, TFrameViewer, and TFrameBrowser components

Declaration

procedure LoadFromFile(const FileName: ThtString; DocType: THtmlFileType = HtmlType);

Description

The LoadFromFile method loads a document of the given type for viewing, where Filename is the name and DocType the type of the file to be loaded.

Filename may optionally contain a document position identifier separated from the actual filename by a # sign.

Example

Viewer.LoadFromFile('MyHTML.htm#Contents');

would load MyHTML.htm and position the view to the location where the "Contents" target was defined.

See also