How to combine mutiple FP3 files into one file ?

edited 5:21AM in FastReport 4.0
Hello

Suppose I have archivized plenty of FP3 files in my database. Now I'd like to preview some of the files alltogether and then print on a printer (for example). To do this I have to combine the files into one FP3 file. How can I do this programatically ?

Thanks

Comments

  • edited 5:21AM
    I managed.
    procedure TForm1.btnCombineClick(Sender: TObject);
    begin
      frxReport1.Preview := frxPreview1;
      frxReport1.PreviewPages.LoadFromFile('first.fp3');
      frxReport2.Preview := frxPreview2;
      frxReport2.PreviewPages.LoadFromFile('second.fp3');
      frxReport1.PreviewPages.AddFrom(frxReport2);
      frxReport1.PreviewPages.SaveToFile('out.fp3');
    end;
    

    You should add TfrxCheckBoxObject object to TForm1.

Leave a Comment