How to combine mutiple FP3 files into one file ?

edited 6:42PM 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 6:42PM
    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

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.