M
Mike Mueller
Vista Business, Access 07, PDF/XPS add in, Acrobat 8
As I got nowhere with merging reports
(I am going to try to use VBA
to script Acrobat to take all of the PDFs generated and make 1 PDF out of
all of them.
Flowchart
1> Print out all reports as PDF
2> Open template.pdf
3> Insert report.pdf files to template.pdf
4> Close template.pdf
Part 1 does work using code based on the following:
For Each obj In dbs.AllReports
strReportName = obj.Name
DoCmd.OutputTo acOutputReport, strReportName, acFormatPDF, strFileName,
False
Next obj
Part 2 is not causing any errors at this time
Part 3 is where I have my question-
When Part 1 is executing, it is not saving the reports in any particular
order (that I can tell at least), even though the report names are
alpha-sorted in the correct order (rpt1_xxx, rpt2_xxx, etc). So I am looking
for the best suggestion on how to loop thru the generated reports in
alpha-order so that the output pdf is in the correct sequence
As I got nowhere with merging reports
(I am going to try to use VBA
to script Acrobat to take all of the PDFs generated and make 1 PDF out of
all of them.
Flowchart
1> Print out all reports as PDF
2> Open template.pdf
3> Insert report.pdf files to template.pdf
4> Close template.pdf
Part 1 does work using code based on the following:
For Each obj In dbs.AllReports
strReportName = obj.Name
DoCmd.OutputTo acOutputReport, strReportName, acFormatPDF, strFileName,
False
Next obj
Part 2 is not causing any errors at this time
Part 3 is where I have my question-
When Part 1 is executing, it is not saving the reports in any particular
order (that I can tell at least), even though the report names are
alpha-sorted in the correct order (rpt1_xxx, rpt2_xxx, etc). So I am looking
for the best suggestion on how to loop thru the generated reports in
alpha-order so that the output pdf is in the correct sequence