PDF export every page in separate file

How I can export report so I have:
report_1.pdf -first page
report_2.pdf -second page
....


Please help

Thanx

Comments

  • edited 3:03AM
    simple:

    frxReport1.PrepareReport(True);

    frxPDFExport1.ShowDialog:=False;
    for i:=1 to frxReport1.Engine.TotalPages do begin

    frxPDFExport1.FileName:=p+'\ponuda_'+inttostr(br)+'.pdf';
    frxPDFExport1.PageNumbers:=inttostr(i);
    frxReport1.Export(frxPDFExport1);
    inc(br);
    end;

Leave a Comment