richviewedit1 to richviewedit2, richviewedit2 to rich...
Posted: Sun Jan 11, 2009 6:22 pm
richviewedit1 to richviewedit2 and richviewedit2 to richviewedit1
this is procedure very slow and some not run for after 100 pages
how can I fast replace formatted text richviewedit1 to richviewedit2 and richviewedit2 to richviewedit1
var
AStream: TMemoryStream;
BStream: TMemoryStream;
begin
AStream := TMemoryStream.Create;
BStream := TMemoryStream.Create;
RichViewEdit1.SaveRVFToStream(AStream, false);
RichViewEdit2.SaveRVFToStream(BStream, false);
AStream.Position:=0;
BStream.Position:=0;
RichViewEdit2.Clear;
RichViewEdit2.InsertRVFFromStreamEd(AStream);
RichViewEdit2.Format;
RichViewEdit1.Clear;
RichViewEdit1.InsertRVFFromStreamEd(BStream);
RichViewEdit1.Format;
AStream.Free;
BStream.Free;
this is procedure very slow and some not run for after 100 pages
how can I fast replace formatted text richviewedit1 to richviewedit2 and richviewedit2 to richviewedit1
var
AStream: TMemoryStream;
BStream: TMemoryStream;
begin
AStream := TMemoryStream.Create;
BStream := TMemoryStream.Create;
RichViewEdit1.SaveRVFToStream(AStream, false);
RichViewEdit2.SaveRVFToStream(BStream, false);
AStream.Position:=0;
BStream.Position:=0;
RichViewEdit2.Clear;
RichViewEdit2.InsertRVFFromStreamEd(AStream);
RichViewEdit2.Format;
RichViewEdit1.Clear;
RichViewEdit1.InsertRVFFromStreamEd(BStream);
RichViewEdit1.Format;
AStream.Free;
BStream.Free;