merge pages PDF

edited 4:15PM in FastReport 4.0
hi
can someone can help me, i have report that consist of two pages, A and B
There are many pages in report..how to combine it in one PDF file ?
(A1,B1,A2,B2,A3B3...)

i tried saving them in folder and combine it, but failed..

frxReport2.PrepareReport;
frxReport2.SaveToFile('repA1.fr3');
frxReport3.PrepareReport;
frxReport3.SaveToFile('repB1.fr3');

frxReport2.PrepareReport;
frxReport2.SaveToFile('repA2.fr3');
frxReport3.PrepareReport;
frxReport3.SaveToFile('repB2.fr3');

and so on...


and after files are saved:

frxReport1.LoadFromFile('repA1.fr3');
frxReport1.PrepareReport;

for i := 2 to count - 1 do
begin
frxReport1.LoadFromFile('repBi.fr3');
frxReport1.PrepareReport(false);
frxReport1.LoadFromFile('repAi.fr3');
frxReport1.PrepareReport(false);

end;

Comments

  • gpigpi
    edited 4:15PM
    This code should works
    frxReport1.LoadFromFile('repA1.fr3');
    frxReport1.PrepareReport;
    
    for i := 2 to count - 1 do
    begin
    frxReport1.LoadFromFile('repBi.fr3');
    frxReport1.PrepareReport(false);
    frxReport1.LoadFromFile('repAi.fr3');
    frxReport1.PrepareReport(false);
    
    end;
    
    use frxReport1.Export(frxPDFExport1);
    for exporting of prepared report to PDF

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.