TCustomRichView.LoadHTMLFromStream

<< Click to display table of contents >>

TCustomRichView.LoadHTMLFromStream

Appends the content of HTML from Stream.

function LoadHTMLFromStream(Stream: TStream;
  const Path: TRVUnicodeString = ''; 
  CodePage: TRVCodePage = CP_ACP): Boolean;

(introduced in version 21)

The same as LoadHTML, but loads from a stream instead of a file.

Parameters

Stream stream containing HTML

Path defines a base path for images. If HTMLReadProperties.BasePathLinks = True, this path is also used for hyperlinks.

CodePage defines encoding of HTML file. If it is equal to 0 (CP_ACP), encoding is detected by TRichView.

Method type: viewerstyle viewer-style.

Parameters for loading are in HTMLReadProperties.

See details in the topic about LoadHTML.

Return value: "Was reading successful?"

 

See also methods of TRichView:

LoadHTML;

SaveHTMLToStream.

See also events of TRichView:

OnImportPicture;

OnImportFile;

OnReadHyperlink;

OnStyleTemplatesChange;

OnProgress;

OnAssignImageFileName.

See also methods of TRichViewEdit:

InsertHTMLFromStreamEd.

See also:

Saving and loading in TRichView.