trichview.com

trichview.support




Re: Loading RTF, extra line


Return to index


Author

Message

David Kroll

Posted: 10/10/2003 19:37:36


I wasn't calling editor.Format after loading.  That fixed the problem.


Thanks for your help.



"Sergey Tkachenko" <[email protected]> wrote in message

news:[email protected]...

> This code is correct (of course, assuming that editor.Format is called

> after.

> So the error is somewhere in another place.

>

> Useful information can be in the Call Stack window.

> Compile your application without optimization, with stack frames, with all

> debug info.

> When exception occurs, open the Stack window (View | Debug Windows | Call

> Stack) and send a screenshot to me [email protected]

>

>

> >   rtfStream := TStringStream.Create(oMessage.Text);

> >   try

> >     editor.Clear;

> >     editor.LoadRTFFromStream(rtfStream);

> >   finally

> >     rtfStream.Free;

> >   end;

> >

> > This is being used in an email application.  Our custom emails are saved

> > into the database as rtf.  Above, oMessage.Text is the RTF code that was

> > saved when the message was saved.

>

>





Powered by ABC Amber Outlook Express Converter