trichview.com

trichview.support




Re: Saving into a DataBase


Return to index


Author

Message

Stepanov Dmitry

Posted: 10/22/2002 8:36:38


YES, IT'S TRUE!

Stepanov Dmitry


"Anderson" <[email protected]> �������/�������� � �������� ���������:

news:[email protected]...

> Hello

>

>     I use the function "SaveRTFToStream" for save data into a

TMemoryStream,

> and after I use it to save the data into a DataBase (Interbase 6.0).

>     When I will load the data from the database, I use the function

> "SaveToStream" of the TBlobField, and after I use the function

> "InsertRTFFromStreamEd" for put the data into a TRichViewEdit, but the

> alignment of the first line has been  lost. What can I do?

>

> I used the following:

>

> To Save

>                 MyTRichViewEdit.SaveRTFToStream(Stream,False);

>                 Stream.Seek(0,soFromBeginning);

>

> TBlobField(DataSet.FieldByName('XXXX')).LoadFromStream(Stream);

> /*******************************************************************/

> To Load

>

> TBlobField(mdsoMain.DataSet.FieldByName('XXXX')).SaveToStream(Stream);

>                Stream.Seek(0,soFromBeginning);

>                MyTRichViewEdit.InsertRTFFromStreamEd(Stream);

>

>

> Excuse by my English.

>

> Thanks,

> Anderson

>

>





Powered by ABC Amber Outlook Express Converter