trichview.com

trichview.support




Re: Searching Multiple RVF's


Return to index


Author

Message

Marc

Posted: 12/28/2002 3:03:32


Thanks Sergey,


I've tried it, one small problem - loading the data from the blobfile using

the routine below, when I load RVF data that contains 'tags' (e.g. I have

used tags to store http:// address info), it generates a 'EConverError' on

the tag data, saying it is not a valid integer value.


Any ideas?


-----------------



"Sergey Tkachenko" <[email protected]> wrote:

>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