PrepareReport

Hallo,

i have a report, that i have to export many times in a loop.
But the problem is that, all created files have the same data.
frxReport1.LoadFromFile('report.fr3');
for vID:=1 to 10 do
   begin
     frxReport1.Variables.Variables['ID']:=IntToStr(vID);
     frxReport1.PrepareReport;
     frxPDFExport1.FileName:=IntToStr(vID)+'.pdf';
     frxReport1.Export(frxPDFExport1);
   end;

if i change the code, that the file is loaded each time i export it, then everything works fine.

What is wrong?

regards
Philipp Kaufmann

Comments

Leave a Comment