trichview.com

trichview.support




When using LoadRTFFromStream, an extra newline is added at the beginning


Return to index


Author

Message

Daniel Albuschat

Posted: 03/16/2004 15:02:40


Hello,


When I use RichViewEdit.LoadRTFFromStream, I have the problem

that the first line is always empty, and the text starts at the

second line. For example, it happens in this example code:


var

   ms: TMemoryStream;

begin

   ms := TMemoryStream.Create;

   RichEdit1.Lines.SaveToStream(ms);

   ms.Seek(0, soFromBeginning);

   RichViewEdit1.LoadRTFFromStream(ms);

   ms.Free;

   RichViewEdit1.FormatTail;

end;


Thanks,

   Daniel





Powered by ABC Amber Outlook Express Converter