trichview.com

trichview.support




Re: LoadFromStream


Return to index


Author

Message

Tavo

Posted: 01/26/2002 1:30:02


hello


A warning: I've choose "Reply" in my netscape but "svt@trichview.com"

appear in mi "to" mail. I've change manually the adress


Sergey Tkachenko wrote:

> > Function LoadRVFromField(DB_rv : TCustomRichView ;

> >                            Fld : TBlobField    ) : Boolean ;

> > var

> >   TempStream : TBlobStream ;

> > begin

> >   TempStream := TBlobStream.Create(Fld , bmRead ) ;

> >   Try

> >     TempStream.Position := 0;

> >     Result := DB_rv.LoadRVFFromStream(TempStream) ;

> >   Finally

> >     TempStream.Free;

> >   End ;

> > end ;

>

> There is a more efficient way for this - just copy data from the

> field of "ModelsLetters" to the field "ResultLetter" (via streams).


Is a better idea. Thanks.


> 1) Call table.Edit at the beginning of this function (for table linked with

> this DB_rv, i.e. "ResultLetter")

> 2) Call Change method of TDBRichViewEdit


I keep a doubt: I've see in TDbRichViewEdit Help: "this method also

informs linked dataset that data were modified.".  I've try this:


put two TDBRichViewEdit in a TForm (point to same field). Call

DbRichViewEdit1.DB_rv.LoadRVFFromStream method and call Format. After

this, call a Change method (in DbRichViewEdit1). I see the document in

DBRIchViewEdit1 but I can't see anything in DbRichViewEdit2 until

"DbRichViewEdit1.OnExit"

?is right? ?DBRIchViewEdit1.Change no work?


I hope you understand me

Salute

Tavo.





Powered by ABC Amber Outlook Express Converter