Hello,
how can I programmatical copy the RVData to another RichView Component.
I've tried it to save it to a stream and load this stream in the second RichView. But if there are PageBreaks all after the first PageBreak is gone.
How can I solve the problem.
Best wishes
Bernhard
Copy RVData from one in another RichView Component
-
- Posts: 104
- Joined: Mon Nov 26, 2007 1:49 pm
-
- Posts: 104
- Joined: Mon Nov 26, 2007 1:49 pm
Now I can better explain what my problem is. In the meanwhile I found a method to copy the RichText.
ppSicherRV.RichView.Clear;
ppSicherRV.RichView.AppendForm(ppRV.RichView);
... Do something with ppRV.RichView ...
ppRV.RichView.Clear;
ppRV.RichView.AppendFrom(ppSicherRV.RichView);
If I do so then the second page is empty. But the RichView has a second page (hard page break).
Best wishes
Bernhard
ppSicherRV.RichView.Clear;
ppSicherRV.RichView.AppendForm(ppRV.RichView);
... Do something with ppRV.RichView ...
ppRV.RichView.Clear;
ppRV.RichView.AppendFrom(ppSicherRV.RichView);
If I do so then the second page is empty. But the RichView has a second page (hard page break).
Best wishes
Bernhard
-
- Posts: 104
- Joined: Mon Nov 26, 2007 1:49 pm
One further information.
I do this in the OnPrint Event of tppRichView.
The same happens if I try in the OnPrint Event to load a RV-File (which has more than one page).
The first page is then ok, the second page is empty.
I'm at the end with my wisdom. Please help me. What is to do after appending or loading the RVData?
Best wishes
Bernhard
I do this in the OnPrint Event of tppRichView.
The same happens if I try in the OnPrint Event to load a RV-File (which has more than one page).
The first page is then ok, the second page is empty.
I'm at the end with my wisdom. Please help me. What is to do after appending or loading the RVData?
Best wishes
Bernhard
-
- Posts: 57
- Joined: Wed Aug 31, 2005 6:46 pm
Re: Copy RVData from one in another RichView Component
BernhardRoos wrote:Hello,
how can I programmatical copy the RVData to another RichView Component.
Code: Select all
MemStream := TMemoryStream.Create;
try
rv.SaveRVFToStream(MemStream, False);
MemStream.Position := 0;
RichViewEdit1.LoadRVFFromStream(MemStream);
finally
MemStream.Free;
end;
RichViewEdit1.Format;
-
- Posts: 104
- Joined: Mon Nov 26, 2007 1:49 pm
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 104
- Joined: Mon Nov 26, 2007 1:49 pm
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: