<< Click to display table of contents >> TCustomRichView.LoadFromStream |
Loads document from Stream, autodetecting its format (RVF/RTF/DocX/text)
type
TRVYesNoAuto = ( rvynaNo, rvynaYes, rvynaAuto );
function LoadFromStream(Stream: TStream; IsTextUnicode: TRVYesNoAuto): Boolean;
(introduced in version 10)
This method can detect both normal RTF, and RTF converted to Unicode string.
The method does not load text if it contains characters having codes less than ord(' ').
IsTextUnicode specifies whether the text is Unicode:
▪rvynaNo – reading text as ANSI;
▪rvynaYes – reading text as Unicode;
▪rvynaAuto – autodetecting ANSI/Unicode (wrong detection is very possible).
Method type: viewer-style.
Return value:
"Was reading successful?"
See also methods of TRichView: