trichview.support
Re: Multiple lines in one RVData.SetItemText(i, value) |
Author |
Message |
Jim Maguire |
Posted: 06/16/2005 2:48:54 I run into exactly the same error (Abort) I get in prior posts when I use TMemoryStream as follows in the LoadData of Sample I attached in prior post: Result := TMemoryStream.Create; str := 'Insert this text in RVE'; Result.WriteBuffer(PChar(str)^, Length(str)); Result.Position := 0; I load it into a RichEdit just fine: RichEdit1.Lines.LoadFromStream( Result ); When I use the Paradox TTable and your code: TBlobField(Table1.FieldByName('Data')).SaveToStream(Result), it works fine. If I could get an example of loading a string into a memory stream and then into RichView I could take it from there. Thanks, this is the only problem I'm having with RichView. There is something the Paradox SaveToStream is doing that's different from the TMemoryStream becausethe DB unit's TBlobField.SaveToStream. "Sergey Tkachenko" <svt@trichview.com> wrote in message news:42ad8ae2$1@support.torry.net... > Do not use TStringStream, it damages binary data. > Use TMemoryStream instead > > |
Powered by ABC Amber Outlook Express Converter