I have previously written code to generate PDF files from Access reports (using Distiller), but does anyone know if it's possible to create (say) a 4 page PDF document, where page 1 is AccessReportA, page 2 is AccessReportB, etc?
You can use the same code. If the reports to be printed are the results of a query, you just send the entire result to your program, and will write out all the reports to a single pdf file.
Thanks for your reply. I may not have explained things very well. I am talking about (say) two Access reports (A & B). Report A (let's say 3 pages long) gets it's data from queryA and presents it in one format. Report B (let's say 2 pages long) get's it's totally different data from queryB and presents it in a very different format. Is it possible to in some way send both reports to Adobe so that only a single 5 page PDF file gets created?
Could you show me an example of the code? If the user has full version of Acrobat 4.0, then you simply added reference to their OXC and then inserted as an ActiveX control?
I've forgotten something, I can't use OCX cause this code has to work from different workstations with different OSs. But maybe there is another way to solve the problem.
I had about 15 reports to combine into one report. I created a new report and added each of the 15 reports as sub-report. Now I get all 15 together, each report starts on a new page. Page numbers at the bottom are 1 to 15.
You may want to check out our PDF and Mail library for Access. It can not only output the PDF files, but also merge multiple files into one file on the fly from within Access.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.