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

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.