G
Guest
What we have: one report, printed to pdf, 1000 pages long, one page for each
of our 1000 employees.
What we need: 1000 single page pdfs, each one with the date and emp_id in
the filename.
What we do now:
1. create a record set of the 1000 employees from their emp_id,
2. use a loop and the record set to open the report, filter it for their
emp_id, print it, close the report, move to the next record.
3. when we “print†we’re actually sending the report output to Adobe’s
PDFWriter, and we update the report’s “caption†to include the date and their
emp_id. The PDFWriter uses that “caption†as the filename when it creates
the pdf.
4. we end up with 1000 pdfs, one for each employee, dated, with their emp_id
in the filename (20070505_emp_id_ReportName.pdf)
The problem is that this takes almost two hours! Any suggestions as to how
we could speed this up?
The real lag appears to be the report, which is relatively complex. The
report has two sub reports. The main report, and the two sub reports, all
use the same table as a record source. The table contains all data for all
employees. (The report used to have 6 sub reports, each sub report based on
its own query, tied to the main query of the employee info, which the main
report used. It took nearly 3 hours just to print a single pdf of this
report. I have since reduced the sub reports to two, and based everything on
one table that I created from the multiple queries. This has cut the time
about in half.
~notDave
of our 1000 employees.
What we need: 1000 single page pdfs, each one with the date and emp_id in
the filename.
What we do now:
1. create a record set of the 1000 employees from their emp_id,
2. use a loop and the record set to open the report, filter it for their
emp_id, print it, close the report, move to the next record.
3. when we “print†we’re actually sending the report output to Adobe’s
PDFWriter, and we update the report’s “caption†to include the date and their
emp_id. The PDFWriter uses that “caption†as the filename when it creates
the pdf.
4. we end up with 1000 pdfs, one for each employee, dated, with their emp_id
in the filename (20070505_emp_id_ReportName.pdf)
The problem is that this takes almost two hours! Any suggestions as to how
we could speed this up?
The real lag appears to be the report, which is relatively complex. The
report has two sub reports. The main report, and the two sub reports, all
use the same table as a record source. The table contains all data for all
employees. (The report used to have 6 sub reports, each sub report based on
its own query, tied to the main query of the employee info, which the main
report used. It took nearly 3 hours just to print a single pdf of this
report. I have since reduced the sub reports to two, and based everything on
one table that I created from the multiple queries. This has cut the time
about in half.
~notDave