TRVTableItemInfo.LoadFromStream

<< Click to display table of contents >>

TRVTableItemInfo.LoadFromStream

Loads table from Stream.

procedure LoadFromStream(Stream: TStream);

Table must be saved using SaveToStream or SaveRowsToStream methods. Table can be loaded correctly only if collections of text, paragraph and list styles in TRVStyle are the same as at the moment of saving.

Applications rarely, if ever, call LoadFromStream directly. Usually tables are loaded from RVF files or streams together with main documents.

This method must be used in conjunction with BeforeLoading and AfterLoading. AfterLoading must be called when the table is inserted in the document.

Table.BeforeLoading(rvlfRVF);

Table.LoadFromStream(Stream);

if RichViewEdit1.InsertItem('', Table) then

  Table.AfterLoading(rvlfRVF);