rvico TRichView Reference | TRichView

TCustomRichView.AppendRVFFromStream

Top  Previous  Next

Adds data from Stream in RichView Format (RVF) to the end of document.

function AppendRVFFromStream(Stream: TStream;

  ParaNo: Integer): Boolean;

This method appends content from RVF stream. It ignores the paragraph style of first paragraph in RVF and uses the ParaNo-th paragraph style instead of it.

Parameters:

Stream – stream containing document in RichView Format (RVF).

If ParaNo=-1, the method adds the first item to the end of the last paragraph. If ParaNo>=0, this item starts a new paragraph with the ParaNo-th style. (ParaNo is an index in the ParaStyles collection of the linked RVStyle component). This parameter affects only the first paragraph of inserted data. Styles of other paragraphs are defined in RVF.

Method type: viewerstyle viewer-style.

Setting for RVF loading can be changed in the TRichView component editor.

If style templates are used, and RVFTextStylesReadMode=RVFParaStylesReadMode=rvf_sInsertMerge, and StyleTemplateInsertMode<>rvstimIgnoreSourceStyleTemplates, the method merges style templates from RVF into Style.StyleTemplates, and reads text and paragraph styles according to StyleTemplateInsertMode. The method calls OnStyleTemplatesChange event.

Return value:

"Was reading successful?"

See also properties:

RVFOptions;

RVFWarnings;

RVFTextStylesReadMode (this method type: RVF insertion);

RVFParaStylesReadMode (this method type: RVF insertion);

UseStyleTemplates.

See also events:

OnRVFImageListNeeded;

OnRVFControlNeeded;

OnRVFPictureNeeded;

OnControlAction (ControlAction=rvcaAfterRVFLoad);

OnStyleTemplatesChange.

See also methods:

InsertRVFFromStream;

LoadRVFFromStream;

LoadRVF;

Format;

FormatTail.

See also:

TRichView component editor;

Saving and loading;

RVF overview;

Paragraphs.


TRichView © trichview.com