trichview.support
Re: Searching Multiple RVF's |
Author |
Message |
Todd Fabacher |
Posted: 12/28/2002 11:23:53 I would use the HelpID if you are not already using it. It will give you the most flexability. Todd "Marc" <marc.knowles@bbc.co.uk> wrote in message news:3e0cea54@support.torry.net... > > 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" <svt@trichview.com> 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