trichview.com

trichview.support




Re: Searching Multiple RVF's


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/27/2002 13:30:53


Currently, the best way to extract text from RVF field in the database - to

load it in hidden RichView and save as text:


function LoadRVFFromField(rv: TCustomRichView; tbl: TTable;

                          const FieldName: String): Boolean;

var Stream: TStream;

begin

  Stream := TMemoryStream.Create;

  try

    TBlobField(tbl.FieldByName(FieldName)).SaveToStream(Stream);

    Stream.Position := 0;

    Result := rv.LoadRVFFromStream(Stream);

  finally

    Stream.Free;

  end;

end;



You need not to format loaded document, so this operation is fast.





Powered by ABC Amber Outlook Express Converter