Is it possible to display RTF text placed in string in RichEdit?

From: Arminio Grgic (Arminio_Grgic_at_Yahoo.com)
Date: 04/26/04


Date: Mon, 26 Apr 2004 09:34:04 GMT

I created RTF document in a string and want to display it in RTF.

I tried simple:

         RichEdit1.Lines.Text := mystringwithRTFlines;

And, I get EOutOfResource error (RichEdit line insertion error) - but
after that, text is displayed well in RichEdit !?

Obviously, this is not possible this way (actually it works but with
error message !?) ... is there any way to put RTF text from string
into RichEdit ?

I use Delphi 6.0 Update Pack 2

-- 
Q. What are your qualifications to be a film critic?
A. I can watch movies, I can think, and I can write.
>From Dale's Movie Page at
http://www.geocities.com/Hollywood/Academy/7309/movies.html
--
http://agrgic.tripod.com  |  http://agrgic.tripod.com/rew
* STOP nekvalitetnim DVD izdanjima! Potpisite peticiju, prijavite lose DVD-e...
*  http://www33.brinkster.com/stoplosidvd


Relevant Pages

  • Re: Hot to parse RTF String
    ... Public Declare Function OpenClipboard Lib "user32" ... "RegisterClipboardFormatA" (ByVal lpString As String) As Long ... Valid RTF ...
    (microsoft.public.word.conversions)
  • Re: Hot to parse RTF String
    ... Public Declare Function OpenClipboard Lib "user32" As ... "RegisterClipboardFormatA" (ByVal lpString As String) As Long ... Valid RTF ...
    (microsoft.public.word.conversions)
  • Re: RTFcontrol of memo fields
    ... from the Note field to the RTFcontrol field for ALL records, ... The code for CrLf is NOT shown in the string. ... The RTF2 control box will appear with this single line: ... Do you currently have RTF formatted text in the Memo field? ...
    (microsoft.public.access.modulesdaovba)
  • Re: Hot to parse RTF String
    ... Public Declare Function OpenClipboard Lib "user32" As ... "RegisterClipboardFormatA" (ByVal lpString As String) As Long ... Valid RTF ...
    (microsoft.public.word.conversions)
  • Re: Hot to parse RTF String
    ... Public Declare Function OpenClipboard Lib "user32" As ... "RegisterClipboardFormatA" (ByVal lpString As String) As Long ... Valid RTF ...
    (microsoft.public.word.vba.general)