# LoadFromStream Method

## Applies to

THtmlViewer component

## Declaration

procedure LoadFromStream(AStream: TStream; const Reference: ThtString = ''; DocType: THtmlFileType = HtmlType);

## Description

The LoadFromStream method loads a document of the given type from a stream.

Reference is an optional reference parameter.

## See also

- LoadFromDocument Method
- LoadFromFile Method
- LoadFromString Method
- OnhtStreamRequest Event