trichview.support
Re: Searching Multiple RVF's |
Author |
Message |
Marc |
Posted: 12/28/2002 14:37:27 How do I do that? I've been using the SetCurrentTag procedure to save the URL info (same a Demo). This has been fine so far, but the LoadRVFFromStream routine doesn't seem to like the stored tags. Marc -------------------- "Todd Fabacher" <[email protected]> wrote: >I would use the HelpID if you are not already using it. It will give you the >most flexability. > >Todd > >"Marc" <[email protected]> wrote in message >news:[email protected]... >> >> 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