Report Builder and ppRichView

General TRichView support forum. Please post your questions here
Post Reply
Jmich
Posts: 19
Joined: Mon Apr 30, 2007 10:10 am

Report Builder and ppRichView

Post by Jmich »

hi people

wants a richviewedit1 via a switch
ppRichview1 take over.

this code does not work:

pprichview1.richview: = richviewedit1;

What must I do?

best greetings

Jmich
Sergey Tkachenko
Site Admin
Posts: 17521
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

To copy document, use this code:

Code: Select all

var Stream: TMemoryStream;

Stream := TMemoryStream.Create;
richviewedit1.SaveRVFToStream(Stream, False);
Stream.Position := 0;
pprichview1.richview.LoadRVFFromStream(Stream);
Stream.Free;
Jmich
Posts: 19
Joined: Mon Apr 30, 2007 10:10 am

Thank you

Post by Jmich »

Thank you Sergey for the fast help.

Best Regards

Jmich
Post Reply