PrepareReport multi document very slow
I am using Delphi and Fast reports 4 to generate some call sheets. The sheets vary from a single page ( mostly ) up to around 5 pages max.
I set a loop up to process each of the Call sheets from the DB and run the
PrepareReport( False ) function within the loop
If I remove the PrepareReport function from the code it takes 32 sec to process 640 Call Sheets that I am testing.
With the PrepareReport function included the speed deteriorates dramatically
eg
1st min 96 records processed
2nd min 58
3rd min 26
4th min 20
5th min 18
6th min 16
etc
I had one batch of about 1500 Sheets that I was testing which took around 8 hrs to process before the print dialog box appeared. I didn't bother to print to the printer as I am just testing
Does anybody know what can be done to improve the speed of the PrepareReport function ?
Thank's
Pete
I set a loop up to process each of the Call sheets from the DB and run the
PrepareReport( False ) function within the loop
If I remove the PrepareReport function from the code it takes 32 sec to process 640 Call Sheets that I am testing.
With the PrepareReport function included the speed deteriorates dramatically
eg
1st min 96 records processed
2nd min 58
3rd min 26
4th min 20
5th min 18
6th min 16
etc
I had one batch of about 1500 Sheets that I was testing which took around 8 hrs to process before the print dialog box appeared. I didn't bother to print to the printer as I am just testing
Does anybody know what can be done to improve the speed of the PrepareReport function ?
Thank's
Pete
Comments