Page 1 of 1

Report Builder and ppRichView

Posted: Fri May 22, 2009 11:56 am
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

Posted: Fri May 22, 2009 4:26 pm
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;

Thank you

Posted: Mon May 25, 2009 6:26 pm
by Jmich
Thank you Sergey for the fast help.

Best Regards

Jmich