rvico TRichView Reference | Overview

RichView Methods for Saving and Loading

Top  Previous  Next

RichView has the following methods for export:

SaveHTML, SaveHTMLEx: saving HTML files (also SaveHTMLToStream, SaveHTMLToStreamEx)
SaveText: saving plain ANSI text in file; SaveTextW: saving plain Unicode text;
SaveTextToStream, SaveTextToStreamW the same for streams (can save the whole document or only selection);
SaveRTF,SaveRTFToStream exporting the whole document or the selected part to file or stream as RTF (Rich Text Format);
SaveDocX,SaveDocXToStream exporting the whole document or the selected part to file or stream as DocX (Microsoft Word format);
SaveRVF,SaveRVFToStream saving the whole document or the selected part to RVF (RichView Format) file or stream;

RichView has the following methods for import:

LoadText: reading plain ANSI text;
LoadTextW: reading plain Unicode text;
LoadTextFromStream, LoadTexFromStreamtW - the same for streams instead of files;
LoadRTF, LoadRTFFromStream: reading RTF (Rich Text Format) file or stream.
LoadRVF, LoadRVFFromStream: reading RVF (RichView Format) file or stream;

See also: InsertRVFFromStream, AppendRVFFromStream.

Note: All methods for reading contents, introduced in RichView, are viewer-style methods.

RichViewEdit has the following additional methods for import (insertion):

InsertRVFFromFileEd, InsertRVFFromStreamEd like InsertRVFFromFile/InsertRVFFromStream, but editor-style methods.
InsertRTFFromFileEd, InsertRTFFromStreamEd inserting RTF (Rich Text Format) file or stream.
InsertTextFromFile editor-style method;
InsertOEMTextFromFile the same method for files in DOS code page;
InsertTextFromFileW the same method for Unicode files.

There are also method for pasting data from the Clipboard.

Events on export

HTML: OnHTMLSaveImage, OnSaveImage2, OnSaveComponentToFile, OnSaveHTMLExtra, OnSaveItemToFile, OnSaveParaToHTML, OnWriteHyperlink.
RTF: OnSaveComponentToFile, OnSaveRTFExtra, OnSaveItemToFile, OnWriteHyperlink.
DocX: OnSaveComponentToFile, OnSaveDocXExtra, OnSaveItemToFile, OnWriteHyperlink.
Text: OnSaveComponentToFile, OnSaveItemToFile

Events on import

RTF: OnImportPicture, OnReadHyperlink, OnStyleTemplatesChange.

Common events

OnProgress

See also...

Saving HTML

Reading/writing RVF

Export of tables

Unicode in RichView


TRichView © trichview.com