473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

add generic pages to access generated report to export to pdf

10 Byte
Right now I can generate a report that groups data per each sub group. I then export them to individual PDF files by a VBA code. So the report with group ID 555 generates with group 555’s data and so on. I need to add generic full pages to each group document. I tried a few things but it doesn’t really work. I’ve ran into random problems/glitches trying different quick fixes. I figure there has to be a correct way to do it. Does anyone know? The pages could be added as PDF’s, or images. Thank you!
Jul 6 '20 #1
7 3078
jimatqsi
1,271 Expert 1GB
Gilley178, Try to be clear and complete with your requests. What does this mean: " I need to add generic full pages to each group document."

I have no idea what you're trying to accomplish.

Jim
Jul 6 '20 #2
Gilley178
10 Byte
I generate individual PDF documents from a report in Access. For example report 555 generates with report 555’s group associated information. So there is generally around 300 of these individual PDF files. I need to add 3 generic pages with each pdf file. Generic, meaning that the information on them is the same for each of the 300 PDF files. I need to combine the generic 4 page document with each report. I’m thinking that there has to be a way to do this with the report generation.
Jul 6 '20 #3
jimatqsi
1,271 Expert 1GB
Oh, great, thanks for the clarification. Yes, there is a way, by using a sub-report.

Make a new report for your generic pages. Then, add this new report as a sub-report to your design of the existing report. You can do this by simply dragging the generic report to the report footer (or header or where you find it most appropriate) of the main report.

You'll need to look out for some gotchas. A sub-report's page headers never display. So if you need page headers in your generic report, just add grouping to your generic report and move the page headers to the top-most group. Also, you'll probably want to remove the border that appears by default around the sub-report.

Give it a go, you'll find it is very easy to do.

Jim
Jul 6 '20 #4
NeoPa
32,556 Expert Mod 16PB
Great solution Jim. I like that :-)
Jul 7 '20 #5
Gilley178
10 Byte
Thank you for the suggestion. I have been working on it for the past couple of days. Its good to have learned about sub reports and forms. I unfortunately ran into the same issue though. The main body has a maximum of around 21 inches. The reports are quite difficult to get to generate correctly when sticking into the header and footer. It cuts them up and into multiple pages due to conflicts with the margins. I also experimented with converting the images to specific dimensions using paint and then importing them into access to try and manage the report generation errors. It didn't work though.
Jul 13 '20 #6
jimatqsi
1,271 Expert 1GB
It's not very clear what the issues are. 21-inches, top to bottom, is likely to be two pages. You say 'main body', does that mean the report for group ID 555(or similar group) is that long before you add the generic part? What does 'conflicts with the margins' mean?

I don't have any experience with printing images, except an occasional logo here and there.

If you could restate the problems you are having, as clearly and concisely as possible, it may help someone help you.
Jul 13 '20 #7
strive4peace
39 Expert 32bit
hi Gilley,

would you please provide the VBA code you're using to make the individual files?

It seems to me that each report would be filtered such that there is only one group, create the PDF, then loop to the next group and repeat until done.

How is your report set up? Are you using the Report Header section? Group header/footer sections? Detail section?

thanks!
Jul 14 '20 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: AnitaM | last post by:
In ASP.NET, I want to create a dataset, input it to a Crystal Report, export the report to a pdf file, & test on my local host. The application runs until I open the pdf file in Acrobat when I get...
6
by: B Love | last post by:
I am wondering if I can have a dynamically generated report based upon the results of a query (in Access2000). Any ideas? Related to that (if that cannot be done) can the output of a query...
6
by: noway | last post by:
I have greated a report and have included a page break in it. The report breaks were it is supposed to but then it creates a blank page between the two pages. Since this report will print out...
3
by: New Guy | last post by:
Is it possible to use two different tables with the Report Design Wizard? My report requires data from two different tables and I can't figure out how to get the wizard to accept the second one. ...
0
by: Leonard Danao | last post by:
Anyone have any ideas as to why this is happenning. There are no other versions of Crystal installed aside from the one that came with vs2003 enterprise. the error happens when the...
0
by: shuvo2k6 | last post by:
HOW CAN I CREATE DATA REPORT OF MS ACCESS DATABASE AND EXPORT THE REPORT TO MS WORD DOCUMENT FILE from VB 6.0. PLEASE ANY ONE HELP FOR THIS TOPIC? Regards, SHuvo
0
by: Tyler2 | last post by:
I have a form to schedule up and coming courses and from the form I can print out all the pages I have available. The problem is I want to be able to select which pages of the report to print with a...
2
by: passterelli | last post by:
I have created a report that displays the contents of large memo fields. The report must be exported to MS Word (or .rtf) so the type style and type size can be modified according to the final user's...
3
by: Gerrytherip | last post by:
Hi, I am very inexperienced with vba. I am trying to save a generated report to a pdf using the following code. The report is generated perfectly and is displayed on the screen. Private Sub...
0
by: Gilley178 | last post by:
Hello, Right now I can generate a report that groups data per each sub group. I then export them to individual PDF files by a VBA code. So the report with group ID 555 generates with group 555’s...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.