TFrameViewer component
procedure LoadTargetFromFile(const Target, Filename: String);
The LoadTargetFromFile method loads an HTML document into a target frame. Target is the name of the frame where the document is to be displayed, and Filename is the name of the file to be loaded.
Filename may optionally contain a document position identifier separated from the actual filename by a # sign.
Filenames with extensions .bmp, .gif,.jpg, .jpeg,.png, are loaded as images. Filenames with the extension .txt are loaded as text files.
FrameViewer.LoadTargetFromFile('RightWin', 'MyHTML.htm#Contents');
would load MyHTML.htm into the frame named RightWin and position the view to the location where the "Contents" position was defined.
See also: