Solved

Formatted text with RichText component

Posted on 1998-09-11
2
243 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
2 Comments
 
LVL 2

Accepted Solution

by:
rene100 earned 50 total points
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

771 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now