<< Click to display table of contents >> TCustomRichView.LoadFromFile, LoadFromFileEx |
The methods load a document from file FileName, autodetecting its format (RVF/RTF/HTML/DocX/Markdown/text)
function LoadFromFile(const FileName: TRVUnicodeString;
IsTextUnicode: TRVYesNoAuto;
AllowMarkdown: Boolean = False;
CodePage: TRVCodePage = RV_CP_DEFAULT): Boolean;): Boolean;
function LoadFromFileEx(const FileName: TRVUnicodeString;
IsTextUnicode: TRVYesNoAuto; AllowedFormats: TRVLoadFormats;
out Unicode: Boolean;
out LoadedFormat: TRVLoadFormat;
CodePage: TRVCodePage = RV_CP_DEFAULT): Boolean;): Boolean;
(introduced in version 21, modified in version 23)
These methods are analogs of LoadFromStream and LoadFromStreamEx.
Methods type: viewer-style.
Return value:
"Was reading successful?"
See also methods of TRichView:
▪LoadRVF;
▪LoadRTF;
▪LoadDocX;
▪LoadHTML;