Generating report very slow when previewing
Hello,
When generating report for about 26 000 records from a paradox table it takes 4 minutes I am using simple code like that:
And here is my query statement :
I don't think that comes from the query statement because the progress dialog box (preparing report) is shown just after the line :QryEmpl.Open;
And this is after the dialog box that becomes very slow. I also tried with the PrepareReport method.
I attached my fr3 report. Can you help me please ?
When generating report for about 26 000 records from a paradox table it takes 4 minutes I am using simple code like that:
QryEmpl.Open;
frxReport1.Clear;
frxReport1.LoadFromFile(PathName+'Report\badge_fr.fr3');
frxReport1.OldStyleProgress:=True;
frxReport1.ShowProgress:=True;
frxReport1.ShowReport();
And here is my query statement :
SELECT Employe.EMPLOYE_ID, Employe.EMPLOYEUR_ID, Employe.UNITE_ID, Employe.EMPLOYE_NOM, EMPLOYE.PHOTO_PATH,
Employe.EMPLOYE_PRENOMS, Employe.EMPLOI_ID, Employe.DATE_EMBAUCHE, Emploi.emploi, Unite.INTITULE
FROM "Employe.DB" Employe
  INNER JOIN "emploi.DB" Emploi
  ON  (Employe.EMPLOI_ID = Emploi.rowid) Â
  INNER JOIN "unite.DB" Unite
  ON  (Employe.UNITE_ID = Unite.UNITE_ID) Â
WHERE EMPLOYE.EMPLOYEUR_ID=:p1 AND EMPLOYE.SORTIE=FALSE
I don't think that comes from the query statement because the progress dialog box (preparing report) is shown just after the line :QryEmpl.Open;
And this is after the dialog box that becomes very slow. I also tried with the PrepareReport method.
I attached my fr3 report. Can you help me please ?
Comments
have you set the report ccache
I notice you are loading a lot of photos
I tried with 1 and 2 pass in the component and by code.
I also tried with the lines below :
As for the photo, there is no photos in the stored folder and deactivate too the loading of photos in OBP of the MasterData the problem still remain.
During the dialogbox preparation report I noticed that the temp file is created and deleted with sometimes 0 KB and sometimes with a few KiloByte about 18 KB (see my attached image)
Thanks
I thought that I wrote the line frxReport1.EngineOptions.MaxMemSize and it wasn't the case. So my problem is solved with :
Thanks gordk and have a good night.