trichview.com

trichview.support




Re: question about  LoadRTFFromStream method


Return to index


Author

Message

Sergey Tkachenko

Posted: 01/18/2003 14:28:54


> You should reset to the beginning of the stream after saving the contents

of

> the BLOB field to a stream.


Yes,


TMemoryStream *Stream = new TMemoryStream();

  ((TBlobField

*)(tbSouArticle->FieldByName("Article_content")))->SaveToStream(Stream);

  Stream->Position = 0; // !!!

  rvSouEdit->Clear();

  bool r = rvSouEdit->LoadRTFFromStream(Stream);

  rvSouEdit->Format();

  delete Stream;






Powered by ABC Amber Outlook Express Converter