# LoadFromDocument Method

## Applies to

THtmlViewer component

## Declaration

procedure LoadFromDocument(ADocument: TBuffer; const Reference: ThtString = ''; DocType: THtmlFileType = HtmlType);

## Description

The LoadFromDocument method loads a document of the given type from a Document.

Reference is an optional reference parameter.

## See also

- LoadFromFile Method
- LoadFromStream Method
- LoadFromString Method