Solved

Formatted text with RichText component

Posted on 1998-09-11
2
248 Views
Last Modified: 2010-04-03
I have got some formatted text in a RichEdit1. And I have got a QRRichText1 box in a QRListForm.
I want to transfer the formatted text from the RichEdit1 to QRRichText1.
But how?
0
Comment
Question by:rainbowsoftware
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
rene100 earned 50 total points
ID: 1339498
try this:

procedure CopyStream();
var
Stream: TStream;
begin
Stream:=TMemoryStream.Create;
RichEdit1.Lines.SaveToStream(Stream);
Stream.Position:=0;
RichEdit2.lines.LoadFromStream(Stream);
Stream.free;
end;
0
 

Author Comment

by:rainbowsoftware
ID: 1339499
Thanks a lot!
Sometimes the solution is stumbeling (or whatever it's called) close to your brain.
Mine obviously had an offday.

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question