Board index » delphi » How to get whole RTF code from RichEdit as PChar string
Chen Xun
![]() Delphi Developer |
Sat, 05 Jun 1999 03:00:00 GMT
How to get whole RTF code from RichEdit as PChar stringI need to put RTF code (character stream fulfill with '{}', '\') in a RichStream: TMemoryStream; Then, definitely, the RTF stream has been in the Memory of RichStream Memo1.SetTextBuf(RichStream.Memory); Now I can see the whole RTF code in the Memo1 like following: {\rtf1\ansi\deff0\deftab720{\fonttbl{\f0\fnil MS Sans... But, it's very strange, I can't get whole code by both of following Memo1.GetTextBuf(RichBuffer, 2000); That I can only get about the first 256 characters of whole RTF Thanks in advance! Chen, Xun |