trichview.com

trichview.support




Saving into a DataBase


Return to index


Author

Message

Anderson

Posted: 10/21/2002 15:18:51


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