trichview.support
| Re: How Can I import plain text in TRichViewEdit? | 
| Author | Message | 
| Sergey Tkachenko | Posted: 03/19/2003 12:22:42 You can insert text from string (AddTextNL) If Stream is a TStringStream, call rv.Clear; rv.AddTextNL(Stream.DataString, 0, 0, 0); rv.Format; if not: var s: String; SetLength(s, Stream.Size); Stream.Position := 0; Stream.ReadBuffer(PChar(s)^, Length(s)); rv.Clear; rv.AddTextNL(s, 0, 0, 0); rv.Format; > > I need import plain text to RichViewEdit from stream or string. > Why RichViewEdit has LoadRTFFromStream but doesn't have LoadTextFromStream? | 
Powered by ABC Amber Outlook Express Converter