Merging preview result

edited 11:59PM in FastReport 4.0
I'm trying to merge 2 fastreport previews result but it's not working as I expected..
Could someone help me to fix this one ?



Example)

var
aStream:TMemoryStream;
begin
aStream := TMemoryStream.create;

TBlobField(Qry.FieldbyName('report_blob')).SaveToStream(aStream);
aStream.position := 0;
frxReport1.PreviewPages.LoadFromStream(aStream);

aStream.clear;
TBlobField(Qry.FieldbyName('report_blob_2')).SaveToStream(aStream);
AStream.position := 0;
frxReport2.PreviewPages.LoadFromStream(aStream);

frxReport1.PreviewPages.AddFrom(frxReport2) //try merge previews.. and I gets "list index out of bounds(-1)" error message

Comments

  • edited 11:59PM
    Hi,

    I'm also having this issue.
    when merging 2 reports : no problems
    when merging more then 2 reports : "list index out of bounds(-1)" error

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.